Use the options of the MQOPEN call

In the Options parameter of the MQOPEN call, we must choose one or more options to control the access that we are given to the object that we are opening. With these options we can:

  • Open a queue and specify that all messages put to that queue must be directed to the same instance of it
  • Open a queue to allow you to put messages on it
  • Open a queue to allow you to browse messages on it
  • Open a queue to allow you to remove messages from it
  • Open an object to allow you to inquire about and set its attributes (but we can set the attributes of queues only)
  • Open a topic or topic string to publish messages to it
  • Associate context information with a message
  • Nominate an alternative user identifier to be used for security checks
  • Control the call if the queue manager is in a quiescing state

Parent topic: Opening objects using the MQOPEN call