This class is abstract. When an object of this class is destroyed, it is automatically closed, and its ImqQueueManager connection severed. This class relates to the MQI calls listed in Table 19.
ImqBinary (see ImqBinary)
ImqError (see ImqError)
ImqNamelist (see ImqNamelist)
ImqQueue (see ImqQueue)
ImqQueueManager (see ImqQueueManager)
ImqString (see ImqString)
If you use the open method, you must ensure that the open options are appropriate first. However, using the open method is not mandatory; WebSphere MQ still exhibits the same behavior as in case 1, but in this circumstance, the behavior is efficient.
Zero is not a valid value, and so the appropriate value must be set before attempting to open the object. This can be done either using setOpenOptions( lOpenOptions ) followed by open( ), or by using openFor( lRequiredOpenOption ).
Notes:
The alternate security id can be set only while the open status is TRUE. It returns TRUE if successful.
If required-options is zero, it is assumed that input is required, and that any input option will suffice. So, if the open options already contain one of:
MQOO_INPUT_AS_Q_DEF
MQOO_INPUT_SHARED
MQOO_INPUT_EXCLUSIVE
then the open options are already satisfactory and are not changed; if the open options do not already contain any of the above, then MQOO_INPUT_AS_Q_DEF is set in the open options.
If required-options is nonzero, the required options are added to the open options; if required-options is any of the above, the others are reset.
If any of the open options are changed and the object is already open, the object is closed temporarily and reopened in order to adjust the open options.
It returns TRUE if successful. Success indicates that the object is open with appropriate options.
Attention: Use this function only if you are sure it will not break the managed object list.
Attention: Use this function only if you are sure it will not break the managed object list.
MQRC_ATTRIBUTE_LOCKED
MQRC_INCONSISTENT_OBJECT_STATE
MQRC_NO_CONNECTION_REFERENCE
MQRC_STORAGE_NOT_AVAILABLE
MQRC_REOPEN_SAVED_CONTEXT_ERR
(reason codes from MQCLOSE)
(reason codes from MQCONN)
(reason codes from MQINQ)
(reason codes from MQOPEN)
(reason codes from MQSET)