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 correlation id?

495


Does kafka support jms?

452


How can an application do a jms operation and have it succeed, independent of the result of the transaction?

415


What are the basic advantages of jms?

483


What is jms and mq?

454






How to Set message priority levels?

978


How the jms is different from rpc?

464


What is jms jndi?

480


What is the difference between java mail and jms queue?

457


What is jms in spring?

467


What is the point-to-point model in jms?

500


How does jms listener work?

479


Explain the process of Configuring Queues in Jms?

469


Wat is jms client?

513


What is jms and how it works?

433