Specifying channel exits (managed client)
If you specify a channel name and connection name when creating your MQQueueManager object (either in the MQEnvironment or on the MQQueueManager constructor) you can specify channel exits in two ways.
In order of precedence, these are:
- Passing hashtable properties MQC.SECURITY_EXIT_PROPERTY, MQC.SEND_EXIT_PROPERTY or MQC.RECEIVE_EXIT_PROPERTY on the MQQueueManager constructor.
- Setting the MQEnvironment SecurityExit, SendExit or ReceiveExit properties.
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 999 characters if you use the properties
of MQEnvironment or MQQueueManager. However, if the channel exit name
is specified in the CCDT, it 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.