# Binding to Java based Websphere MQ libraries

**URL:** <https://www.ruby-forum.com/t/binding-to-java-based-websphere-mq-libraries/82625>\
**Category:** Ruby\
**Created:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/binding-to-java-based-websphere-mq-libraries/82625 "2007-01-19T16:31:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharon\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@Sharon\_P](https://www.ruby-forum.com/u/Sharon_P)\
**Post date:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/binding-to-java-based-websphere-mq-libraries/82625/1 "2007-01-19T16:31:49Z")

</div>

Hi,

IBM make available a fairly comprehensive collection of Java classes  
for managing MQ. I’m interested in creating Ruby bindings (wrappers?)  
to these classes and was wondering if anyone could point me in the  
right direction to get started.

Cheers,  
Dave

---

<div class="post-metadata">

**Author:** ![Sharon\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@Sharon\_P](https://www.ruby-forum.com/u/Sharon_P)\
**Post date:** [September 25, 2007, 10:35pm UTC](https://www.ruby-forum.com/t/binding-to-java-based-websphere-mq-libraries/82625/2 "2007-09-25T22:35:36Z")

</div>

On Jan 15, 2007, at 2:51 AM, Sharon P. wrote:

> Hi,
> 
> IBM make available a fairly comprehensive collection of Java  
> classes for managing MQ. I’m interested in creating Ruby bindings  
> (wrappers?) to these classes and was wondering if anyone could  
> point me in the right direction to get started.
> 
> Cheers,  
> Dave

Well, I’d say Google for a bit first…

However, I suspect that you’d get better results in creating the Ruby  
bindings for the C version of the MQI. If you really need to go  
through the Java classes, you might have better results looking into  
JRuby (the Ruby interpreter written in Java – Google can help here,  
too).

-Rob

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Sharon\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@Sharon\_P](https://www.ruby-forum.com/u/Sharon_P)\
**Post date:** [September 25, 2007, 10:39pm UTC](https://www.ruby-forum.com/t/binding-to-java-based-websphere-mq-libraries/82625/3 "2007-09-25T22:39:39Z")

</div>

Thanks for the tip on Groovy, I’d not come across this before, but it  
sounds good.

---

<div class="post-metadata">

**Author:** ![Sharon\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@Sharon\_P](https://www.ruby-forum.com/u/Sharon_P)\
**Post date:** [September 25, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/binding-to-java-based-websphere-mq-libraries/82625/4 "2007-09-25T22:51:36Z")

</div>

Dave,  
Well, you should check out STOMP ([http://stomp.codehaus.org](http://stomp.codehaus.org)) and  
ActiveMQ ([http://activemq.org/](http://activemq.org/) particularly the JMS-to-JMS bridge  
[http://activemq.org/site/jms-to-jms-bridge.html](http://activemq.org/site/jms-to-jms-bridge.html)). (I haven’t, but as  
soon as a client needs MOM, I will be 😉

If you haven’t already looked at it, Groovy (http://  
[groovy.codehaus.org/](http://groovy.codehaus.org/) recently 1.0) is a big step toward Ruby-esque  
code in an officially JCP’d Java environment ([http://www.jcp.org/en/](http://www.jcp.org/en/)  
jsr/detail?id=241). It was a presentation about Groovy in 2005 that  
prompted me to take a closer look at Ruby.

-Rob

P.S. Yes, you probably found these already, but I figured I could  
save the next person a few seconds by posting them.

On Jan 16, 2007, at 6:29 AM, Sharon P. wrote:

> After having a bit more of a look (yes, Google is indeed my friend)  
> I’m Dave, she’s Sharon. It’s her computer, I just use it 🙂
> 
> > > 
> > 
> > However, I suspect that you’d get better results in creating the

Rob B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid  
+1 513-295-4739  
Skype: rob.biedenharn

---

<div class="post-metadata">

**Author:** ![Sharon\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@Sharon\_P](https://www.ruby-forum.com/u/Sharon_P)\
**Post date:** [September 25, 2007, 10:44pm UTC](https://www.ruby-forum.com/t/binding-to-java-based-websphere-mq-libraries/82625/5 "2007-09-25T22:44:36Z")

</div>

Thanks for the response Rob,

Using the C library requires the MQ client be installed on the target  
machine, whereas the Java jars can just be dropped in with the  
script. We also have an enterprise worthy app (and all that  
implies…) and I was interested in using portions of that too.

I’d had a look at JRuby (perhaps should have mentioned this) but was  
looking for other ideas.

After having a bit more of a look (yes, Google is indeed my friend)  
I’ve decided to work with the Java code we’ve already developed. No  
Ruby (yet…)

I work for a very large IT company developing enterprise strength  
apps. You’ve no idea how refreshing Ruby is to use compared to my  
normal work and I guess I’m busy trying to use it in as many places  
as I can - the more practice I can get, the more I learn. Wrote a  
nice data migration script today.

On another note, it seems my email shows up under my wife’s name. I’m  
Dave, she’s Sharon. It’s her computer, I just use it 🙂

Cheers,  
Dave
