wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes Difference between Destination and queue/topic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Difference between Destination and queue/topic" Watch "Difference between Destination and queue/topic" New topic
Author

Difference between Destination and queue/topic

thomas jacob
Ranch Hand

Joined: May 19, 2005
Posts: 91
Is there a difference between the term used JMS destination and queue/topic or are they the same terms which can be used interchangably? I know what's a queue and topic.
arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3219
It is the super interface for both Queue & Topic


http://java.sun.com/j2ee/1.4/docs/api/javax/jms/Destination.html


Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
Andrea Gazzarini
Ranch Hand

Joined: Sep 09, 2002
Posts: 125
A queue is a point-to-point channel and therefore can have n senders and only one receiver (from a single message point of view) : that means that a message could be consumed by only one receiver.

A topic is a publish-subscriber channel and therefore can have n senders and n receivers. That means tat a single message could be consumed by n receivers.

Regards


Regards,<br />Andrea<br /> <br /><a href="http://www.linkedin.com/in/andreagazzarini" target="_blank" rel="nofollow">Andrea Gazzarini</a><br />Skype ID : gazzax72<br />Google Talk ID : a.gazzarini@gmail.com<br /><a href="http://www.andreagazzarini.blogspot.com" target="_blank" rel="nofollow">My Blog</a>
 
wood burning stoves
 
subject: Difference between Destination and queue/topic