Ways of defining queues

We can create a queue by using IBM MQ commands (MQSC), PCF commands, or by using platform-specific interfaces.

We can define queues to IBM MQ by using the MQSC DEFINE command or the PCF Create Queue command. The commands specify the type of queue and its attributes. For example, a local queue object has attributes that specify what happens when applications reference that queue in MQI calls. Examples of attributes are:

  • Whether applications can retrieve messages from the queue (GET enabled)
  • Whether applications can put messages on the queue (PUT enabled)
  • Whether access to the queue is exclusive to one application or shared between applications
  • The maximum number of messages that can be stored on the queue at the same time (maximum queue depth)
  • The maximum length of messages that can be put on the queue

There are also various platform-specific interfaces that we can use to define queues. For links to more information, see the Related information.