aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes JMS queue and Topic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS queue and Topic" Watch "JMS queue and Topic" New topic
Author

JMS queue and Topic

satyajit sethy
Greenhorn

Joined: Jun 23, 2012
Posts: 2
Hi Buddies,

Any one can explain the mechanism or architecture of Java Messaging Service in Clustered environments ?
1. I want to define a queue and a consumer application association to the queue and wants to make clustered, so it will be created across all Node i.e Node1,Node2.....Node.n.
2. If i want to fire a message. to queue through queue sender API, how it will work ? will the message. available for all queue(Physical) in all nodes across clustered or only one ?
3. How my consumer will work ? will all consumer will try to get/fetch message from queue or only one ?

Please...anyone can explain...???
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

MQSeries, ActiveMQ and I believe RabbitMQ will all do this for you.

It is up to you to configure the clustered environment.

WP
arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3223
You can think of the cluster as a single Queue. If you use a Queue, only one consumer can consume it. If you use a topic, all the subscribers will get the message. The cluster is essentially used for high availability. The middleware products like Websphere MQ, Web methods, TIBCO, etc allow you this clustering capabilities. You need to check the relevant product manual to configure the MOM product.


Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS queue and Topic