Specifying channel exits

If you specify a channel name and connection name when creating your MQQueueManager object

(either in the MQEnvironment or on the MQQueueManager constructor) we can specify channel exits in 2 ways. In order of precedence, these are:

  1. Passing hashtable properties MQC.SECURITY_EXIT_PROPERTY, MQC.SEND_EXIT_PROPERTY or MQC.RECEIVE_EXIT_PROPERTY on the MQQueueManager constructor.

  2. Set the MQEnvironment SecurityExit, SendExit or ReceiveExit properties.

If you do not specify a channel name and connection name, the channel exits to use come from the channel definition picked up from a client channel definition table. It is not possible to override the values stored in the channel definition.

See WebSphere MQ Clients for more information about channel definition tables.

In each case, the specification takes the form of a string with the following format:

Assembly_name(Class_name)
Class_name

is the fully qualified name,

including namespace specification,

of a .NET class that implements the IBM.WMQ.MQSecurityExit, IBM.WMQ.MQSendExit or IBM.WMQ.MQReceiveExit interface (as appropriate). Assembly_name is the fully qualified location,

including file extension,

of the assembly that houses the class. The length of the string is limited to 128 characters. When necessary, the .NET client code loads and creates an instance of the specified class by parsing the string specification.


csqzav0539