aspose file tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Topic vs Queue Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "Topic vs Queue" Watch "Topic vs Queue" New topic
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%
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Topic vs Queue
 
Similar Threads
Authentication JMS/MDB
Transactions in MDB's
Error Deploying Message Bean to Weblogic 8.1
about JMS......Need Help
MDB in connection pool