A dynamic queue is a local WebSphere® MQ queue that is created
when an application opens a model queue object. A model queue is a queue definition
template that sets the attributes of the queue such as the name of the queue
and whether it is temporary or permanent.
The MQ Connector component uses dynamic queues in the same way it uses
static queues. An application should use a dynamic queue when the following
are true:
- There is no need to retain the queue after the application terminates.
- The responses to the application's messages must be processed by a different
application. In this case, the first application creates a reply-to queue
that points to the second application.
- There is a need to reduce the system administration required for queue
configuration and operational management of these queues.
WebSphere MQ
automatically deletes a temporary dynamic queue when the application sends
a closeConnection call.
The MQ Connector requires the Communications Pool to support dynamic queues.
The names of the queues must be unique within the pool.