Posted: Wed Jan 14, 2009 8:50 am Post subject: JMS and MQ JMS APIs
Newbie
Joined: 14 Jan 2009 Posts: 2
I'm new to the whole pub/sub but have been reading up on JMS and MQ and have noticed there are 2 APIs that look very similar and didn't know if both were needed or if one is prefered over another?
We plan to setup MQ messaging and using a J2EE solution for our project. When reading the Sun site about the JMS API, the impression I get is that JMS is the interface between the application and the messaging. Since MQ has implemented JMS, we would only need to use the sun JMS API to interface with the MQ messaging. I've also went to another site that had mentioned that an application should just impliment the JMS API and not the MQ JMS API.
When reading the IBM site about MQ they mention the MQ JMS API and have seen other sites including this forum where the MQ JMS API appears to be used. Is there any problems only using the sun JMS API when connecting to MQ messaging? Is the MQ JMS API required to use MQ messaging?
Posted: Wed Jan 14, 2009 3:49 pm Post subject: Re: JMS and MQ JMS APIs
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
stigman13 wrote:
I'm new to the whole pub/sub but have been reading up on JMS and MQ and have noticed there are 2 APIs that look very similar and didn't know if both were needed or if one is prefered over another?
We plan to setup MQ messaging and using a J2EE solution for our project. When reading the Sun site about the JMS API, the impression I get is that JMS is the interface between the application and the messaging. Since MQ has implemented JMS, we would only need to use the sun JMS API to interface with the MQ messaging. I've also went to another site that had mentioned that an application should just impliment the JMS API and not the MQ JMS API.
When reading the IBM site about MQ they mention the MQ JMS API and have seen other sites including this forum where the MQ JMS API appears to be used. Is there any problems only using the sun JMS API when connecting to MQ messaging? Is the MQ JMS API required to use MQ messaging?
I see where your confusion comes from.
You should be able to only use the Sun JMS API. However you will need all the MQ implementations classes on the Classpath.
The Reference to MQ JMS API may also include some provider specific information that is usually hidden in the JNDI setup when using pure sun JMS interface...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum