InterviewSolution
| 1. |
What Is Difference Between Jms Queue And Topic? |
|
Answer» JMS queue is used when we have one to one interaction, consumer put the message to JMS queue but only listener can PICK the data from that queue as once that listener pick the data, data get deleted from the queue. JMS topic is BASED on publish subscribe MODEL, here multiple listeners/consumer can CONSUME the same message. JMS topic is used when we need to TRANSFER same data to multiple places. JMS queue is used when we have one to one interaction, consumer put the message to JMS queue but only listener can pick the data from that queue as once that listener pick the data, data get deleted from the queue. JMS topic is based on publish subscribe model, here multiple listeners/consumer can consume the same message. JMS topic is used when we need to transfer same data to multiple places. |
|