Showing posts with label technology. Show all posts
Showing posts with label technology. Show all posts

Wednesday, June 17, 2015

Connecting to remote queue manager using RFHUTIL

The RFHUTIL is a great tool for interfacing with IBM MQ however you can tell it was developed by an engineer for engineers. So of course the user interface is not very friendly. One thing I found confusing was how to connect to a remote queue manager (e.g. queue manager hosted on a remote machine). Here is how I accomplished this.

Step 1

Create a file called rfhutil-remote.bat

Step 2

Edit the file and add the following:

set MQSERVER=CHANNEL/TCP/SERVER_IP:PORT
set PATH=C:\RFHUtil_v7.5;%PATH%
start rfhutilc.exe

Note:

Replace CHANNEL with the remote channel name (e.g. CHANNEL1).
Replace SERVER_IP with the remote server IP Address (e.g. 10.0.0.1).
Replace PORT with the remote server port (e.g. 1414).
Replace the RFHUTIL path with the path to where you installed RFHUTIL.

Step 3

Open the rfhutil-remote.bat file.

Step 4

In the Queue Manager Name text box set the connection string. The connection string is the same as the MQSERVER from the batch file. See below.

Afterwards click the "Load Names" button.




Thursday, May 14, 2015

My first experiences with Camel and IIB9

This will be a quick post on my first experiences with Apache Camel and IIB9.

Apache Camel is really easy to install. In fact there is no installation required. Instead you simply need to download the camel-core.jar file and start using the API in your code (either manually or using Maven). Of course with Camel this means you need to know Java, and likely other APIs and Frameworks such as Spring, Maven, Eclipse, etc... So a good knowledge of the Java ecosystem is recommended if you are using Camel, but it is not required. I was able to get Camel up in running in less than 5 minutes with a Hello World example when I first used it 7+ years ago, and the process hasn't changed since then.

In comparison, IIB9 consists of many installations (IBM WebSphere MQ, MQ Explorer, IBM Integration Bus, FixPacs, IBM Integration Toolkit, Licenses, Integration Bus Explorer). This is expected because IIB9 is a full ESB. If you were deploying Camel onto an ESB (such as ServiceMix) then obviously you would need to download, install, and configure it as well. Installing ServiceMix is also as simple as downloading the tar file and unpacking it onto your computer. Similarly ActiveMQ if you needed message orientated middleware. Since IIB9 is a licensed product I spent many days downloading and installing the suite of applications. Although the IBM passport site provided everything I needed it was a lot of button clicks and searching for the correct download links. I would recommend if you are downloading this for your team that you host these files on a central Samba server so that other developers don't have to go through the same downloading headaches.

After installing IIB9 I had to create a Queue Manager and Integration Node and server. This is required in order to perform any Integration Bus development, since running the code requires deploying it onto an integration server. In some cases you might only need to install the IBM Integration Toolkit if your IBM Integration Bus and MQ is hosted on a remote server in your IT organization.

A few problems I had with IIB9 was the toolkit used an older version of Eclipse from 2012, which meant that support for many of the new plugins was a bit problematic to install. For example, it took a little while to find and get the EGit plugin working in the toolkit. A hiccup, but not a roadblock by any means.

Developing for the first time...

As a Java developer I personally found Camel to very easy to get started with. Since Camel is just Java code the process was no different than learning other APIs like I have in the past. The Camel website was very simple to navigate and finding tips and tricks on how to develop various routing and mediation logic was as simple as opening up Google, Stack overflow or the Apache Camel website. There are also lots of code examples on Github that can be downloaded.

When starting IIB9 it was fairly easy to get up and running. All I had to do was open the IIB9 toolkit and start drawing my message flows. My issue with IIB9 is that it seems to historically be very ESQL-centric. If you trace the roots of IIB9 back to its origins, I'm guessing that ESQL was used primarily as a platform independent functional language on top of MQSeries Integrator. From my experience when I searched for information on how to implement something in IIB9 it usually provides the coding as ESQL. Unless you are a seasoned ESQL developer you will often find yourself Googling information on how to perform various operations, or trying to figure out the ESQL syntax. You can develop code in Java however it seems most of the online examples and seasoned IIB9 developers are doing it in ESQL. Compare this with Camel which finding a coding example in Java easier since it has a much larger user base. While I do have a good background in other SQL related products (PostgreSQL, MySQL, etc..) I found searching for ESQL stuff to be very frustrating. Search results on ESQL often turned up results on SQL-Server, Oracle, which had no relation to IIB9. Also, there seems to be no books on Amazon specifically related to ESQL on IIB9. So unfortunately I always had to go to the IBM Knowledge base which often times was difficult to dig through finding the example I was looking for. The knowledge center is good but relying on a single resource for help is not always great. Needless to say the MQSeries help forums are very useful and the community is fantastic. Also if you decide to code in ESQL your custom logic will be locked in to IBM and it won't be re-usable if you ever decide to migrate to another integration product. If you code in Java I'm guessing some of that code could be ported over in the future if necessary. However this might not be a concern for some businesses.

One thing I should mention is that from my experience I always find most open source products (especially 100% Java products) to be much more simple to get going than the big players such as IBM, Microsoft, Oracle, etc... But the cons of a simple installation often means you need to spend a lot of time configuring the product to your liking. For example, IIB9 has a lot of security pre-built into it, which can be good for server installs but often a pain in the ass for developers because it often can be too restrictive. A good example of this is when I used Camel with ActiveMQ and subscribed to a JMS Queue, the queue would automatically be created. In comparison in WebSphere MQ out of the box requires you to manually create the queue and configure the authorization and authentication in may cases since security is built-in. So, in conclusion, from my experience, out-of-the-box Camel and the Apache products in general seem to be more developer-centric/friendly than IBM and other big vendors. But this is expected and I wouldn't see this as necessarily a bad thing, just means I need to learn more on these products to become more comfortable with them.

I hope in the next post I can discuss how to develop routing and mediation logic in both Apache Camel and IIB9.

Update - June 18, 2015

I found this post to be very useful on getting started with IIB

https://developer.ibm.com/integration/blog/2015/05/06/ibm-integration-bus-get-started-in-ten-minutes/

Friday, May 1, 2015

The 30,000 foot view of Apache Camel and IBM Integration Bus

This post I will be comparing Apache Camel and IBM Integration Bus. This blog series won't be focused on marketing buzz words but rather it will dive deep into a comparison between the two offerings. Today's blog post will provide a 30,000 foot view from a developers perspective.

Apache Camel

There are lots of descriptions on what Apache Camel is. Here is my take on it...

Apache Camel is an open source Java API consisting of a set of ready-to-use Enterprise Integration Patterns (EIP) that can be configured to execute complex routing and mediation logic to meet a wide variety of business integration needs. For example, splitting a file, or dynamically routing a message based on its content, aggregation, etc. If an EIP is not available custom code can be developer as a Processor. In my experience Camel has been shown to significantly reduce development costs in wide variety of areas such as systems integration.

Camel also provides a set of components that can be configured to interact with 3rd party APIs, systems, and protocols. For example, Camel has a set of components for interfacing with Files, TCP/IP protocol, Amazon Web Services, Java Messaging Service (JMS), JDBC, and more. There are over a hundred components available, and more components are being contributed every year from the community. In my opinion this is where Camel really outperforms all other integration offerings.

If your components consume or produce messages in various formats such as XML, binary, JSON, etc, Camel has really nice support for this using type converters. It can automatically detect when conversion between types is required via a type converter registry. This allows developers to easily convert between various object types with very little effort.

Camel also has a powerful Domain Specific Language (DSL) that can be developed in Java, XML, Scala, Groovy.

Although Camel is not an ESB it can be deployed onto and ESB such as Apache ServiceMix. This allows you to deploy Camel routes across the enterprise or in the cloud. I will talk in more detail later on this.

Camel was invented by James Strachan and has been around since 2007 and the community is rapidly growing. It is currently maintained by Apache and one of their PMCs is Claus Ibsen. Both are really great guys. I've had the pleasure sharing a beer with them at a previous Apache Camel conference.

IBM Integration Bus

I'm fairly new to IBM Integration Bus, so there might be cases where I write statements that could be inaccurate. If I do, please be courteous and let me know in the comments section below so I can make the appropriate corrections.

Here we go...

IBM Integration Bus (IB9) is a full fledged Enterprise Service Bus. IB9 has been around for a long time, originally as MQ Series Integrator, and Message Broker and recently Integration Bus. Wikipedia has more details on its origins and history.

IB9 provides an easy to use and very powerful toolkit which is based on Eclipse that developers can draw message flows to describe their routing and mediation logic. Message Flows contain inputs and outputs. There are a number of out of the box input nodes such as File, HTTP, Databases, FTP, TCP, and more. Message flows can be visualized by teams to help provide context of complex routing and mediation logic which is something that programming code cannot always do.

Similar to Camel, IB9 offers patterns that can be configured to execute complex routing and mediation logic to meet a wide variety of business integration requirements. Custom code can be implementing in a compute node using languages such as Enterprise SQL (ESQL), Java, PHP and .NET.

In addition to patterns, IB9 has a built in support for parsing text and binary data using DFDL and also has a nice tool for mapping data from one XML document to another.

Since IB9 is a full fledged ESB, it allows developers to deploy their routing and mediation logic onto integration nodes which host integration servers across the enterprise. This is an extremely powerful offering as it makes it easy for teams to hot deploy their integration solutions very easily without having to worry about painful class loading issues that driven me mad in IBM WebSphere Application Server. As mentioned, Camel is not an ESB it can be deployed on an ESB such as Apache ServiceMix and other containers. I will touch on this in later posts.

IB9 has seamless integration with IBM WebSphere MQ, which makes it a very attractive offering to people who already use MQ in their business. In fact, from my understanding, IB9 requires MQ Queue Managers as part of its deployment and coordination across integration nodes. So in retrospect its almost required that you need some kind of MQ running in order to use IB9. From my understanding this is not the case in IB10. Like IB9 Camel has seamless integration with Apache  ActiveMQ. Once again this will be part of later discussions.

There are many more features I will discuss about IB9 later on as it is quite comprehensive.

More to come...

In future blog posts I will talk more about Camel and IB9 and how they stack up to each other, while diving deep and comparing their features. I'll try not to be bias but I will certainly offer my opinion on what I like and don't like about each offering and share my experiences on each.

In this series of blog posts I hope to touch on (in no particular order) a wide variety of topics including but not limited to:

  1. Installation & Setup
    1. My first experiences with Camel and IIB9
  2. Documentation
  3. Apache Camel Routes vs IBM Integration Bus Message Flows / Sub Flows
  4. Apache Camel Components vs IBM Integration Bus Input/Outputs
  5. Apache Camel EIPs vs IBM Integration Bus Patterns and Compute Nodes
  6. Apache Camel Tooling vs IBM Integration Bus Toolkit
  7. Apache Camel JVM offering vs IBM Integration Bus ESQL/Java offering
  8. Data Mapping
  9. REST / SOAP
  10. Micro Services
  11. Cloud
  12. Database
  13. Black box, white box, unit testing
  14. Deployment & Migration
  15. Source Control and Versioning
  16. Enterprise Operations & Management
  17. Training & Support
  18. Cost
  19. My personal likes/dislikes
Stay tuned...

Updated May 1, 2015

On a side note. I know Apache Camel and IBM Integration Bus are apples and oranges and many folks will be questioning why I am comparing the two. This is point is really to showcase the differences in how developers use and develop integration solutions on the two offerings. I will try to provide more comparisons of IB9 with Camel and its sister projects such as ServiceMix, ActiveMQ and other open source projects. This will give people a more ESB-to-ESB comparison.

Wednesday, April 22, 2015

A detailed and (hopefully) un-biased comparison of Apache Camel and IBM Integration Bus v9.0

Over the next several months I am going to be providing a deep comparison between Apache Camel and IBM Integration Bus v9.0 (formerly IBM Message Broker). Although Camel is a light-weight integration framework and IB9 a full featured ESB, both use Enterprise Integration Patterns to reduce the complexity and cost when it comes to integrating heterogenous systems.

Before I start I will mention a few things...

I've been using Apache Camel since version 1.5.4 on R&D and production-grade systems in the Defense and Aerospace industry. I've also have experience using other Apache products such as Karaf, ServiceMix, ActiveMQ, and many other Enterprise Java projects such as Maven, Spring, JPA, the list goes on.... Only until recently I began using IBM products in a large IT organization. (e.g. Integration Bus v9, IBM MQ). Thus, my experience on IBM products is still fairly new. So you can say that I have a lot of background in Enterprise Java Development in the open source area and less background in IBM's product suite. So my comparison will be coming from the background of a Java developer.

I have also been to many Apache Camel conferences and training. I have also been in IB9 training and also attend IBM developer conferences as well. So there will be detailed thoughts on things like support, training and documentation.

Needless to say this blog series will provide a very detailed comparison of Camel and IB9, occasionally including other projects (mentioned above). Since I am fan of open source and Java development I will try to be as un-biased as possible, however, I will often share my likes/dislikes about each.

Before I begin let me be clear that this blog series is meant to provide:

  • A detailed comparison of the features in IB9 and Camel, including related projects such as IBM MQ, Open Source Products (e.g. ServiceMix, ActiveMQ, Spring, JPA, etc..).
  • My thoughts and subjective opinions on things I like and dislike about each product. Hopefully this will be un-biased.
And I want to be crystal clear that it is NOT meant to provide:

  • A guide which you should base your decision when choosing Camel or IB9. It is recommended you evaluate both products yourself.
  • A recommendation or conclusion on which product is better. Both have pros and cons.
  • A flame war between the two products. IBM does a great job in many of its products, as does Apache Camel community. 

I hope to make a blog post at least once a month, so stay tuned...

Wednesday, March 25, 2015

Using Eclipse Luna with Proxy Server

After a bit of digging I found the site that shows a workaround for getting Eclipse Luna SR2 to work with a proxy server.

Simply add the following to the eclipse.ini file.

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4


Found this on stackoverflow http://stackoverflow.com/questions/22148782/unable-to-connect-to-the-eclipse-luna-market

Thursday, October 1, 2009

Windows Vista Defrag - Fail

Yet another stupid user interface design by Microsoft. This time I attempted to defrag a machine. The last time I remember defragging a system was with windows 2000/XP. I recalled it would give you a screen showing you a percentage of the disk that was fragmented, so you could evidently make a smart decision on whether you need to degragment the disk.


Well unfortunately simply going to the defrag UI in Vista is not the same. When I loaded the defrag utility from the start menu (which is another pain in the ass UI I won't discuss) I was presented with the following.


Yet another User Interface designed for apes! I am really tired of Microsoft hiding advanced options to avoid confusing their users. I didn't think that a simple color chart showing the fragmentation on disk would confuse people. Hell, they went even further and took the easy route and didn't display a progress bar. Instead it simply says

"This may take from a few minutes to a few hours".

I don't know about you, but whenever I ask my computer to do something I like for it to have somewhat of an accurate time frame on when its going to complete the task.

Who is Microsoft hiring these days? Who is overlooking these design decisions? Does Microsoft even care anymore or are they more focused on making a new search engine to compete with Google (which is a total piece of crap)?

If anyone knows who the developer for the defrag UI please have them contact me. I hope to god it wasn't more than one developer, similar to the shutdown menu, if so Microsoft is in trouble.

Goodbye defrag!

Tuesday, June 2, 2009

Windows Search 4.0 Sucks

So I downloaded Windows Search 4.0 as it promised to solve all my searching problems. Pfft, yeah right, as if Microsoft understands what its consumers problems are!

Well right from the get go the search didn't work. I was really annoyed that I couldn't simply type in the name of file I wanted to search and press "Go". Instead I am confronted with too many options which the average user like me doesn't care. Furthermore any folder I search in it requires me to index the folder!



Furthermore any folder I search in it requires me to index the folder! OK so I guess this isn't so bad. Where is the button to enable indexing? Oops! There isn't one! Instead it forces you to open another windows explorer shell and check off all the folders you want to index. But wait, what if I am just learning computers and I have no freakin' idea what indexing means. Thank god I am not!



But wait there's more!. ARGGHH that stupid dog is back. Didn't I take him out back like old yeller and annihilate him a few years back when I first installed windows XP. Looks like old yeller came back from the dead.



Good job to all those Microsoft Certified Systems Engineers who can't build a simple user interface containing a one text field search feature.



Tuesday, May 19, 2009

Ubuntu vs Vista driver support

Installing drivers in Vista is certainly a real pain. A prime example is older hardware. I attempted to build an HTPC using older parts on Vista Ultimate. Sure sounds like a relatively easy task, wrong!

Here are the parts I used for the HTPC.

1) Asus A8VE Deluxe motherboard.
2) Microsoft MCE Remote featured on http://www.ncix.com/products/?sku=29147&vpn=GP-IR01BK&manufacture=Mediasonic

Problem #1

The Asus A8VE-Deluxe driver did not work with WPA TKIP encryption with my Linksys router. I had to refer to a 3rd party forum (http://vip.asus.com/forum/view.aspx?id=20061113005728562&board_id=1&model=P5AD2-E+Premium&SLanguage=en-us&page=2) to find out that the driver only worked with WEP encryption. The drivers worked fine, however the card would not find an IP from the DHCP server on the router. Who woulda thought!

The funny thing is that my motherboard was only manufactured a year before Vista began development. If you look at the copyright logo for Vista from "My Computer" > "Properties" it says "Copyright 2006". One would expect that drivers from the same era would work. Heck it might even be Asus's fault, who knows?!

Problem #2

A Microsoft Vista Certified MCE remote that I purchased would not resolve the drivers in Vista. The USB receiver kept identifying the remote as the eHome Infrared device. Vista could not find the drivers for this device even if it meant curing Bill Gates from cancer. Regardless, I tried another USB receiver (Antec iMon) with the transmitter remote and things worked ok. Mind you not all the buttons are mapped correctly.

Both problems did not occur in Ubuntu 8.10. The Wireless worked perfectly both in WPA and WEP mode. The MCE remote worked flawlessly (of course with the help of LIRC).

Conclusion,

I have been using Windows since 3.11, and it has always been a real pain to find drivers. Most recently switching to Linux in the past few years I have had zero problems getting hardware to work. You would think Microsoft, who spends $8B annually on R&D, could develop a comparable system for discovering hardware drivers for their operating system family.

*Crossing fingers for the day Linux takes control of the PC market*












I am not sure how Microsoft competes with Ubuntu

Wednesday, January 21, 2009

Sunday, January 18, 2009

Saturday, January 17, 2009

Display panel

testing the display panel.

Monday, January 12, 2009

Rats nest of pots!

Starting to solder the wires to the pots. What a mess!


Thursday, January 8, 2009

Inserting the computer

The mixer will contain a quad core computer with 4GB 1066Mhz ram.

I likely will purchase a slim optical drive and also a 2.5" hardrive. This way i dont have to purchase a laptop and lug it around

Wednesday, January 7, 2009

Sampling the knobs

Trying to figure out which knobs to buy.

Sunday, December 14, 2008

Starting the midibox box!

Bought some pine wood the other day (total cost was under $30) and started sanding and varnishing it. Still not done but here are some pics.

Sunday, December 7, 2008

Front panel for the mixer

Went to a friends house to cut and sand the front panel. Have';t decided the placement of all the knobs yet but it is a start.

Tuesday, October 28, 2008

A quick and dirty Lame MP3 Encoder implementation

I have been very frustrated with some of the tools out there that use the LAME MP3 encoder. First off they all have a user interface, or some type of GUI wizard that requires user input to generate an mp3. This is great, however it is not so great when I want to quickly convert a wav file to an mp3 with the click of a button. I haven't found a tool that does this, but be sure to tell me if there one that does.

What I wanted to do was right click on a wav file and select send to -> mp3. Similar to that of winzip when you want to quickly convert a bunch of files to a zip archive.

To solve this issue I downloaded the LAME MP3 encoder source and built it on my XP machine. The compiled files I placed in c:\Lame and in my environment variables I set LAME=c:\Lame

I created a batch file called "Mp3.bat" and placed it into the c:\Documents and Settings\Jamie\Send To folder

The contents of the Mp3.bat file is below:

call "%LAME%\lame.exe" -b 320 -h %1 %1.mp3
pause

Now when I right click on my wav file I can easily convert the file to an mp3!

For anyone wanting a quick and dirty way to convert their files to mp3s this is a good solution.

Here is a snapshot of the process

STEP 1:




STEP 2: Select the wav file for conversion




RESULT:

Wednesday, September 3, 2008

Motunation

Found a useful site for Motu people

http://www.motunation.com/

Motu can't get IEEE 1394 right

So I used to own a M-audio Audiophile Firewire sound card. Everything worked great with both my desktop PC and my Dell m65 laptop with ableton.

The only thing the m-audio card lacked was the additional inputs/outputs I needed to route to an external mixer such as the pioneer djm-800.

So I decided to purchase a Motu 828 Mk3, which was the best sound card available for the money, offering 10-in/10-out, which is exactly what I needed to route 4 channels from ableton into an external DJ mixer.

The new Motu worked great with my PC. However when I went to use it with my laptop I ended up getting a blue screen of death when installing the drivers. The BSOD reported a DRIVER_IRQL_NOT_LESS_OR_EQUAL error.

So I contacted Motu's technical support and they told me that they only support Firewire chipsets manufactured by Texas Instruments. Well thanks for NOT stating that on the box f**ckers! You clearly claimed that you were IEEE 1394 compliant. Obviously f**cking not! Maybe you should have stated you were IEEE 1394 compliant with TI chipsets only!

So I took the liberty in ordering a Syba Expresscard (model# which contained a Texas Instruments XIO2200 chipset and re-attempted to get the Motu working. After connecting the Syba expresscard it showed in the device manager that the firewire chipset card was indeed Texas Instruments.

So my question to Motu (which they never answered) was "How come my existing M-Audio firewire worked with BOTH my PC and Dell m65?, where the Motu does not". Apparently Motu blames it on the non-TI manufacturers of the firewire chipsets. But really can they claim this?

I have a degree in electrical engineering and IEEE 1394 is a specification. If M-Audio can get the IEEE 1394 spec right why can't Motu? To my understanding Motu manufactures much higher quality products than M-Audio.

So it appears to me that the only real solution is to purchase a laptop with an onboard TI firewire chipset. Reason I know this? Because my friend owns a Macbook which I tested the Motu on and everything worked fine.

Anyways,

Word of the wise -> Don't buy a Motu unless you have an onboard TI chipset

Monday, July 28, 2008

Workbench

Pics of the workbench