ChannelAutoDefExit (MQCHARn)

This is the name of the user exit for automatic channel definition. If this name is nonblank, and ChannelAutoDef has the value MQCHAD_ENABLED, the exit is called each time that the queue manager is about to create a channel definition. This applies to channels of type MQCHT_RECEIVER, MQCHT_SVRCONN, and MQCHT_CLUSSDR. The exit can then do one of the following:
  • Create the channel definition without change.
  • Modify the attributes of the channel definition that is created.
  • Suppress creation of the channel entirely.
Note: Both the length and the value of this attribute are environment specific. See the introduction to the MQCD structure in MQCD - Channel definition for details of the value of this attribute in various environments.

This attribute is supported only on AIX®, HP-UX, IBM® i, Linux®, Solaris, Windows, and z/OS®. On z/OS, it applies only to cluster-sender and cluster-receiver channels.

To determine the value of this attribute, use the MQCA_CHANNEL_AUTO_DEF_EXIT selector with the MQINQ call. The length of this attribute is given by MQ_EXIT_NAME_LENGTH.