Sun Java System Message Queue 4.1 Technical Overview

Producing to a Queue Using the Reply-To Model

The figure below shows how destinations are created and replicated when a client produces to a queue and uses the reply-to model.

Figure 4–3 Replication of Destinations in a Cluster: Queue with Reply-To

Figure showing the propagation of destinations in a cluster.
Detailed explanation follows in text.

  1. The administrator creates the physical destination QW. The queue is replicated throughout the cluster at creation time.

  2. Producer ProdQW sends a message to queue QW and uses the reply-to model, directing replies to temporary queue TempQ1W. (The temporary queue is created and replicated when an application creates a temporary destination and adds a consumer.)

  3. The home broker, BrokerW, persists the message sent to QW and routes the message to the first active consumer that meets the selection criteria for this message. Depending on which consumer is ready to receive the message, the message is delivered either to consumer C1QW (on BrokerX) or to consumer C2QW (on BrokerZ). The consumer receiving the message, sends a reply to the destination TempQ1W.