Show TOC

JMS Publish/Subscribe and Point-to-Point CommunicationLocate this document in the navigation structure

Use

The JMS adapter supports both JMS publish/subscribe and point-to-point communication.

In publish/subscribe communication, messages are stored in a topic. If multiple sender channels subscribe to the same JMS topic, they all receive a copy of the JMS message before it is deleted from the JMS topic.

The JMS adapter supports only durable subscribers. Each active subscriber receives a copy of the message. A copy of the message is retained for every inactive durable subscriber.

In JMS point-to-point communication, messages are stored in queue. If multiple sender channels connect to the same JMS Queue, only one of the sender channels receives a JMS message. This is because the JMS message is deleted from the queue once is has been successfully received from the JMS Queue.

In a clustered environment, when multiple instances of a channel connecting to a JMS Topic are activated, and the instances would try and connect to the same JMS topic using the same subscription ID. This is not allowed and most likely results in an exception.

More information: Configuring the Sender JMS Adapter

Configuring the Receiver JMS Adapter