Sun Java System Message Queue 4.1 Technical Overview

Producing to an Auto-Created Destination

The next figure shows how destinations are created and replicated in the case of a producer that sends a message to a destination that does not exist and has to be automatically created.

Figure 4–4 Replication of Destinations in a Cluster: Auto-Created Destinations

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

  1. Producer ProdAutoQY sends a message to a destination AutoQY that does not exist on the broker.

  2. The broker persists the message and creates destination AutoQY.

    Auto-created destinations are not automatically replicated across the cluster. Only when a consumer elects to receive messages from a queue AutoQY, would that consumer’s home broker create the destination AutoQY and convey the message to the consumer. At the point where one consumer creates the autocreated destination, the destination is replicated across the cluster. In this example, when the consumer CAutoQY, creates the destination, the replication takes place.