ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Difference between MQ API and JMS API

Post new topic  Reply to topic
 Difference between MQ API and JMS API « View previous topic :: View next topic » 
Author Message
lodha13
PostPosted: Thu May 31, 2012 10:21 am    Post subject: Difference between MQ API and JMS API Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu May 31, 2012 10:42 am    Post subject: Reply with quote

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
View user's profile Send private message
lodha13
PostPosted: Thu May 31, 2012 11:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu May 31, 2012 11:11 am    Post subject: Reply with quote

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
View user's profile Send private message
lodha13
PostPosted: Thu May 31, 2012 11:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu May 31, 2012 11:48 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Thu May 31, 2012 12:33 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

You can do group messages in JMS.
Back to top
View user's profile Send private message
mvic
PostPosted: Thu May 31, 2012 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
JLRowe
PostPosted: Tue Jun 05, 2012 2:54 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Difference between MQ API and JMS API
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.