This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes clustered envirornment - Topic / Queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "clustered envirornment - Topic / Queue" Watch "clustered envirornment - Topic / Queue" New topic

clustered envirornment - Topic / Queue

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1383
In the clustered environment Whether Topic / Queue which one is better ?
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Well, you use them for different purposes so you are unlikely to swap from one to the other just because the application is deployed in a cluster.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Mohana Murali

Joined: Sep 26, 2002
Posts: 27
Use Topic if you want to send message more than one destinations. Use Queue if you want to send message to one destination.

We should not choose Topic or Queue with respect to Cluster or non cluster.
If you use MQ and Queue type messaging. MQ admin can also control MQ clustering instead of application clustering. Same is true for Topic also. So do not bother much about clustering when you make decision about Queue or Topic. Go by requirement suitability.
rocket mass heater kickstarter
subject: clustered envirornment - Topic / Queue