Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

clustered envirornment - Topic / Queue

 
kri shan
Ranch Hand
Posts: 1470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the clustered environment Whether Topic / Queue which one is better ?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mohana Murali
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic