• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

JMS, MQSeries and SoniqueMQ

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic