Home

 

DefinitionType (MQLONG)

Local Model Alias Remote Cluster
Yes Yes No No No

This indicates how the queue was defined. The value is one of the following:

MQQDT_PREDEFINED

The queue is a permanent queue created by the system administrator; only the system administrator can delete it.

Predefined queues are created using the

DEFINE MQSC command, and can be deleted only by using the

DELETE MQSC command. Predefined queues cannot be created from model queues.

Commands can be issued either by an operator, or by an authorized user sending a command message to the command input queue (see CommandInputQName attribute for more information).

MQQDT_PERMANENT_DYNAMIC

The queue is a permanent queue that was created by an application issuing an MQOPEN call with the name of a model queue specified in the object descriptor MQOD. The model queue definition had the value MQQDT_PERMANENT_DYNAMIC for the DefinitionType attribute.

This type of queue can be deleted using the MQCLOSE call. See MQCLOSE - Close object for more details.

The value of the QSGDisp attribute for a permanent dynamic queue is MQQSGD_Q_MGR.

MQQDT_TEMPORARY_DYNAMIC

The queue is a temporary queue that was created by an application issuing an MQOPEN call with the name of a model queue specified in the object descriptor MQOD. The model queue definition had the value MQQDT_TEMPORARY_DYNAMIC for the DefinitionType attribute.

This type of queue is deleted automatically by the MQCLOSE call when it is closed by the application that created it.

The value of the QSGDisp attribute for a temporary dynamic queue is MQQSGD_Q_MGR.

MQQDT_SHARED_DYNAMIC

The queue is a shared permanent queue that was created by an application issuing an MQOPEN call with the name of a model queue specified in the object descriptor MQOD. The model queue definition had the value MQQDT_SHARED_DYNAMIC for the DefinitionType attribute.

This type of queue can be deleted using the MQCLOSE call. See MQCLOSE - Close object for more details.

The value of the QSGDisp attribute for a shared dynamic queue is MQQSGD_SHARED.

This attribute in a model queue definition does not indicate how the model queue was defined, because model queues are always predefined. Instead, the value of this attribute in the model queue is used to determine the DefinitionType of each of the dynamic queues created from the model queue definition using the MQOPEN call.

To determine the value of this attribute, use the MQIA_DEFINITION_TYPE selector with the MQINQ call.



 

Home