• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS, MQSeries and SoniqueMQ  RSS feed

 
Patrick ODonnell
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am writing an application to Browse queues in both MQSeries (WebsphereMQ) and SoniqueMQ using JMS.
My question is if I write the Queue Browser using JMS, will there be different implementations of JMS standard across the two Messaging Services(if u known what I mean).i.e. if I have a JMS client written using the JMS API from Sun will my application work when I try to connect to MQseries??
Any help would be good, as I am a bit confused at the moment with all these different API's.
Thanks,
Patrick
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer is yes, it will work. The only difference will be in the way you obtain the Connection Factories from JNDI.
When you obtain a JNDI Initial Context you must specify a URL and a "factory type". If you examine the different examples of JNDI code for looking up EJB homes for different servers (like in Richard Monson-Haefel's book) you'll see that different vendors have different ways of specifying the URL and the name of the class (a factory) that creates the "initial context".
You'll find the same thing to be true in looking up connection factories, queues and topics for JMS. The way you specify the JNDI initial context will differ slightly. However, this is easily resolved by looking these two parameters up from a properties file.
Kyle
 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
a) To support JMS MQSeries provide MQ-JMS API which is a wrapper to MQSeries.
b) Please refer the following document for MQJMS configuration:
http://www.developer.ibm.com/library/articles/programmer/farrell1.html

Regards,
Raman
 
Patrick ODonnell
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your replies, they were very helpful.
Patrick
 
Patrick ODonnell
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I just have question on MQ wrapper classes. I have downloaded and installed the MA88 suport pack from and have ran some of their examples. Their examples use MQQueue instead of the JMS Queue class, etc. Does this support pack support the ordinary Queue, QueueBrowser etc.., classes??
Thanks,
Stephen.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it does. See the PDF documentation) called "MQ Series using Java" for examples of using the standard JMS class names with MQ.
Kyle
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!