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

JMS queue and Topic

 
satyajit sethy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic