what is topic and what is queue ?

Answer Posted / sachin

JMS Topic is a JMS managed object used to manage message
comminucation between publisher ( sender of message) and
subscriber ( receiver of message).

Queue is JMS managed object used for holding messages
waiting for subscribers to consume. When all subscribers
consumed the message , message will be removed from queue.

To put an anology with email system consider all emails
with subject 'Offers from Tesco Stores'. This subject is
called topic. If there are multiple messages of same
subject headings, it will be called as queue, waiting to be
read.

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jms mean?

439


How does a sender application transport/send a message through jms?

478


What is mean by jms?

473


What is publish/subscribe messaging?

481


Explain about Connection interface?

492






What is a jms connection?

470


What are the steps involved in configuring the jms?

481


How to read message from jms queue in java?

431


What is jms connection?

471


What is jms broker in sas?

597


Mention different types of messages available in JMS API?

466


What is the difference between java mail and jms queue?

470


What is the functionality of a jms queue browser?

447


What is a jms server?

433


How jndi is related to jms?

552