Two Laptop Bag*
The moose likes EJB and other Java EE Technologies and the fly likes Difference between JMS Queue and MQ queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Difference between JMS Queue and MQ queue" Watch "Difference between JMS Queue and MQ queue" New topic
Author

Difference between JMS Queue and MQ queue

murali kankanala
Ranch Hand

Joined: Nov 15, 2004
Posts: 110
Hi,

I would like to know what is the difference between JMS queue and MQ queue. When should i use and what? Where as i know we can connect MQ queue and JMS queue by using JMS API.

Could you please explan me in more clear?


Appreciate your help.


Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

murali kankanala wrote:Hi,

I would like to know what is the difference between JMS queue and MQ queue. When should i use and what? Where as i know we can connect MQ queue and JMS queue by using JMS API.

Could you please explan me in more clear?


Appreciate your help.




JMS is the specification provided by Sun for messaging. MQ Queue is the IBM's implementation of JMS. Similary JBoss has its own implementation. JMS Queue is the generic term. MQ Queue is the concrete implementation provided by IBM.


Regards
KumarRaja

murali kankanala
Ranch Hand

Joined: Nov 15, 2004
Posts: 110
Kumar Raja,

I understood what you said. But could you please refer this link http://www.ibm.com/developerworks/websphere/library/techarticles/0610_bicheno/0610_bicheno.html
Here what is JMS Server means? I knew what is MQ Server.

I will give one scenario: Lets I have WebSphere and IBM MQ Server seperately. I want to send messages to MQ Server and receive messages from MQ Server to my MDB. For this MQ folks configured MQ server. We do get Host Name, Queue Manager and Queue names. Now in in the WebSphere i have to create a Queue Connection Factory and Queues. Here are we creating any Physical Queues in WebSphere or just we are trying to create a JNDI with which we can connect to actual MQ Queue Manager/Queues?

If you see diagram in the link that i have provided they are explaning JMS Server and MQ Server are different.

Could you please explain me?


Thank you.
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

Hi Murali,

I went through the link you provided and it seems to discuss about configuring JMS Nodes which I assume to be specific to IBM's implementation. I did not use much of MQ, so we need to wait for some one else to explain this. I would be glad to know this architecture. If you come across the answer, please post it back here, so that people like me can be benefited.
raizel Ruf
Greenhorn

Joined: Oct 26, 2010
Posts: 3
Kumar Raja wrote:
murali kankanala wrote:Hi,

I would like to know what is the difference between JMS queue and MQ queue. When should i use and what? Where as i know we can connect MQ queue and JMS queue by using JMS API.

Could you please explan me in more clear?


Appreciate your help.




JMS is the specification provided by Sun for messaging. MQ Queue is the IBM's implementation of JMS. Similary JBoss has its own implementation. JMS Queue is the generic term. MQ Queue is the concrete implementation provided by IBM.


Let's say we have a JMS server. And we have an MQ Queue. Can we consume the MQ Queue from the JMS server ? how?
Aakash Parashar
Ranch Hand

Joined: Jul 25, 2005
Posts: 121

Receiving Message from MQ Queue
========================

MQ Manager
========
MQ Queue

Wespher Server
===========
Listener Port
JMS Queue - Referring the MQ Queue and Listener Port
JMS Queue Connection Factory - Referring the MQ Q Manager and Listener Port

Java Code
==========
MDB will listen to the JMS Queue (given above)
MDB will receive message from JMS Queue (JMS Queue will receive message from MQ Queue ) and will process.

Sending Message to MQ Queue
====================
Use com.ibm.mq api to connect to
1. MQ Queue Manager
2. MQ Queue
3. Send Message in Queue
4. Close the session.


Your's Aakash
SCJP 1.4 96%, SCBCD 1.3 94%, http://java-application-programming.blogspot.in
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between JMS Queue and MQ queue
 
Similar Threads
JMS
Can JMS + MQ work together?
Difference between Destination and queue/topic
Difference in Messaging Bridges and JMS Module
MQ Publish/Subscribe