Stephan Schwab

Software development and farm life

Ruby Wrapper for IBM MQ

leave a comment »

Currently I’m working on a Ruby gem called “rmq”. It is a wrapper library to make the C language API of IBM’s MQ product available to Ruby programmers. There has been another gem “ruby-wmq” but it was a C extension and only works with MRI Ruby. That leaves people using other Rubies like JRuby without support. Plus it appears that “ruby-wmq” is no longer supported.

As part of a current client engagement I was doing some experiments about how to best test message flows created with IBM MQ Message Broker. For that I wrote a few helper classes for JUnit that use the Java API for the MQ product. Another experiment was to use SOAP to call into flows exposed as web services. And then I did a sample using the C API.

Eventually it appeared to be best to wrap the C API which also exposes all administrative functions that are not available via any other API. In the end I want to use test message flows via Cucumber and for that I need the ability to create, find, clean and destroy queues on a local queue manager so that every scenario can run completely independent.

I hope that I can make “rmq” and maybe a few other pieces open source and release it all as a gems.


Written by Stephan Schwab

February 13, 2012 at 9:24 pm

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 259 other followers

%d bloggers like this: