Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between JMS Queue and MQ queue

 
murali kankanala
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 547
2
Hibernate Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
murali kankanala
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 123
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic