Skip to main content

Difference between JMS Topic and Queue


A JMS topic implements a publisher/subscriber(s) model. When you publish a message on a topic, all the subscribers who have an active subscription will receive the message ( Zero or more ) .


A JMS Queue implements a one-to-one or load balancer model. When you send a message to the queue, one and only one consumer will receive that message.

If there are no consumers at the time the message is sent, it will be kept on the queue until a consumer can process the message.