File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Topic vs Queue

 
Joe Harry
Ranch Hand
Posts: 10047
3
Eclipse IDE Mac PPC Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

What is the difference between a Queue and a Topic in an MDB?. We set this to the destinationType property of the activationConfig. What difference does this make to the MDB? Please help guys!

Thanks in advance.
 
Ali Gohar
Ranch Hand
Posts: 572
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These are two different methods of messaging. Queue is used for point to point messaging means there will be one receiver of the message. There can be more but the message will be received to one of them. It also guarantees delivery of the message, means message will be there in the queue unless it is consumed by someone.

whereas Topic is used for Pub/Sub messaging or broadcasting a message to topic and all the listeners against that topic can consume the message.
 
Joe Harry
Ranch Hand
Posts: 10047
3
Eclipse IDE Mac PPC Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ali Gohar:
These are two different methods of messaging. Queue is used for point to point messaging means there will be one receiver of the message. There can be more but the message will be received to one of them. It also guarantees delivery of the message, means message will be there in the queue unless it is consumed by someone.

whereas Topic is used for Pub/Sub messaging or broadcasting a message to topic and all the listeners against that topic can consume the message.


Thanks!
 
Ashraf Abu-Aisheh
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks Ali Gohar
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic