| Author |
Topic vs Queue
|
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
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.
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
Ali Gohar
Ranch Hand
Joined: Mar 18, 2004
Posts: 572
|
|
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
Joined: Sep 26, 2006
Posts: 8795
|
|
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
Joined: Apr 17, 2009
Posts: 88
|
|
Many thanks Ali Gohar
|
SCJP 5 - 79%
SCWCD 5 - 100%
|
 |
 |
|
|
subject: Topic vs Queue
|
|
|