what is topic and what is queue ?

Answer Posted / yogi_spysr

Topic>>> is a object which is used to get the producer on a
destination,, and we publish a msg and send it to that
destination,,,
so if we have many listeners to our msg then the msg will
be recieved by all recievers
:::: means it is a Kind of Publisher-Subscriber relation
one publisher and many subscriber


on the right hand we have
Queue >>>
is a object which link us to a queue
since in a queue of msgs and a msg will remain in queue
until it is recieved by the particular reciever who is
supposed to get it

its something like

MESSAGE --->> |Message Queue|--->> Destination

if msg is retrived then it is deleted

simply
when ::::Queue think of Mobile SMS service
topic think of Airtel SetUP Box

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jms connection?

473


What are all the features of JMS API in J2EE platform?

496


What is jms jndi?

488


What is a durable queue?

466


What is Point-to-Point Approach?

1225






What is the use of jms? Can we send message from one server to another server using jms?

491


How to write junit test cases for jms?

687


What is a message topic?

478


What is a JMS client?

545


Why do we need jms?

489


Explain Synchronous Message Consumption in JMS?

1048


What is MOM in reference to JMS?

543


What is difference between queue and topic?

521


How to read message from jms queue in java?

431


What is the functionality of the oracle glassfish server? What added advantage it has on top of apache tomcat server?

447