Author |
Message
|
lodha13 |
Posted: Thu May 31, 2012 10:21 am Post subject: Difference between MQ API and JMS API |
|
|
Novice
Joined: 17 May 2012 Posts: 24
|
Hi
We have two different API's available to access Websphere MQ. I understand that JMS can only be used with JAVA but MQI can be used with any.
But in java what are adavantages of using one over the other.
Thanks |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 31, 2012 10:42 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
JMS is a standard that is part of the Java Enterprise Edition framework.
You use it when you are developing solutions that run under JEE containers.
Or if all you know is JMS because all you know is JEE programming. |
|
Back to top |
|
 |
lodha13 |
Posted: Thu May 31, 2012 11:03 am Post subject: |
|
|
Novice
Joined: 17 May 2012 Posts: 24
|
I can use MQI as well instead of JMS. Is there any MQI advantages over JMS |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 31, 2012 11:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
The MQI interface, being native, can be faster and more efficient than the JMS one.
Does that outweigh the advantages in terms of use, administration and maintenance JMS provides inside a Java environment? I'd need to be convinced of that.
The question is why are you considering MQI over JMS inside a Java environment? What requirement is leading you to ask the question, or put another way, leading you away from JMS? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lodha13 |
Posted: Thu May 31, 2012 11:34 am Post subject: |
|
|
Novice
Joined: 17 May 2012 Posts: 24
|
I thought this question because as I am using WebsphereMQ as provider, so just wondering if MQI API supports all features or JMS might not support all the features which WSMQ provides.
1 Does JMS supports group message?
2 There must be some differences between them which is the reason JMS was created. Just wanted to know that.
Thanks |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 31, 2012 11:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
lodha13 wrote: |
There must be some differences between them which is the reason JMS was created. Just wanted to know that. |
The MQI is the interface the product uses.
JMS is a Java standard which is nothing to do with IBM, WMQ or any part of it but is how Java applications communicate. WMQ can act as a JMS provider in the same way a number of messaging products (which have their own native interface) act as JMS providers.
So all these JMS providers conform to the JMS standard and support group messages (or not) according to what JMS supports. They support selectors (or not) according to the JMS standard.
This is fairly basic Java stuff (because it's Java and I know it) and I'm surprised a Java person is asking about it. Or doesn't already know it. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
zpat |
Posted: Thu May 31, 2012 12:33 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
You can do group messages in JMS. |
|
Back to top |
|
 |
mvic |
Posted: Thu May 31, 2012 2:55 pm Post subject: |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
lodha13 wrote: |
I can use MQI as well instead of JMS. Is there any MQI advantages over JMS |
What are your requirements? It is easier to make relevant comments if you tell us a bit about what you want to achieve. |
|
Back to top |
|
 |
JLRowe |
Posted: Tue Jun 05, 2012 2:54 pm Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
The only reason to use MQI is esoteric requirements from legacy MQ endpoints. Otherwise, go JMS wherever possible - it gives a higher level of abstraction. |
|
Back to top |
|
 |
|