Topic and Queue are two kinds of destination, where a Sender sends messages. in Point to Pointe messaging, also known as PTP messaging, Sender and Receiver communicates using Queue, while on publish-subscribe messaging, also known as pub/sub messaging, Receiver subscribes on a Topic.
The topic is used, when more than one consumers are interested in receiving the same messages. In JMS, both Queue and Topic are interfaces, which extend Destination and subsequently encapsulate the name of the Topic or Queue.
Since Destination is a JMS administrated object, the creation of Topic and Queue is usually governed by JMS Provider administrator. Usually messaging or middleware team, which administers broker, creates Topic and Queue on request of the application team and allows them to access using JNDI.
A JMS client can specify a Queue or Topic name while creating Message Producer or Consumer e.g. by using Session.createConsumer(Destination queueOrTopic) or Session.createProducer(Destination queueOrTopic).
Posted Date:- 2021-09-16 16:42:30
How do you check how much memory and CPU your Java process is consuming?
What is the difference between Apache httpd and Tomcat?
Which JMS Provider have you worked with? Like IBM's WMQ, Apache Active MQ, Sonic MQ, etc
What is JMS Selector? How does it work? Any example of Using JMS Selector?
Does JMS Session object is thread-safe? Can we share JMS Session among multiple threads?
Describe the concept of Message Driven Bean Clustering.
For sending messages through JMS, what encryption options are there?
How you can deliver a java message to a non-java client?
What is MOM in reference to JMS?
What happens if a durable subscriber is not running? will JMS Server discard the message?
What is the functionality of a JMS Queue Browser?
What is the functionality of a message Listener in the context of JMS?
If you have a transacted session what happens if you get an exception while processing a message?
Does JMS support Guarantee message delivery?
What is the difference between the P2P (Peer to Peer) model and subscribe model?
Mention different types of messages available in JMS API?
What is JNDI? How is it related to JMS?
Difference between Topic and Queue in JMS?
Mention the difference between durable and non-durable subscription?
What is the principle difference between the working mechanism of JMS and RPC?
What is the number of messaging models available on JMS?
Difference between synchronous and asynchronous messaging? How do you do that in JMS?
What are the types of communication provided by JMS? Explain in detail.
What are the components of JMS?
What is the role of the JMS provider?
Explain the difference between topic and queue?
How many types of messaging model do JMS provide for and what are they?
How do I make a Wlfullclient jar?
What is the use of Wlfullclient jar?
How do I find JNDI resources on WebLogic?
Where is JNDI name in WebLogic console?
How does a two phase commit work?