Configure nondurable message consumers

 

We can specify the name of the consumer queue for nondurable message consumers in either of the following ways:

The queue name you provide must start with the following characters:

To use the shared queue approach, specify the complete name of the shared queue. The queue must exist before we can create a subscription.

To use the multiple queue approach, specify a queue name that ends with an asterisk (*). Subsequently, when an application creates a nondurable message consumer specifying this queue name, WebSphere MQ JMS creates a temporary dynamic queue for exclusive use by that consumer. With the multiple queue approach, therefore, all the required queues are created dynamically.

If you use the multiple queue approach, we cannot specify the complete name of a queue, only a prefix. This allows you to create different domains of consumer queues. For example, we can use:

The characters that precede the asterisk (*) are used as the prefix, so that all dynamic queues for nondurable message consumers specifying this prefix have queue names that start with SYSTEM.JMS.ND.MYDOMAIN.


uj25160_