MQChannelExit

public class MQChannelExit
extends Object
java.lang.Object
   |
   +----com.ibm.mq.MQChannelExit
          

This class defines context information passed to the send, receive and security exits when they are invoked. The exit must set the exitResponse member variable to indicate what action the WebSphere MQ Client for Java must take next.

Note: This class is not used when connecting directly to WebSphere MQ in bindings mode.

Fields

capabilityFlags

public int

Capabilities of the queue manager.

Only the MQC.MQCF_DIST_LISTS flag is supported.

CurHdrCompression

public int

The technique currently being used to compress header data.

CurMsgCompression

public int

The technique currently being used to compress message data.

exitID

public int

The type of exit that has been invoked. Possible values are:

exitReason

public int

The reason for invoking the exit. Possible values are:

exitResponse

public int

Set by the exit to indicate the action that the WebSphere MQ Client for Java must take next. Valid values are:

exitUserArea

public byte[]

A storage area available for the exit to use. Any data placed here is preserved by the WebSphere MQ Client for Java across exit invocations with the same exitID. That is, each send, receive or security exit has its own independent user area.

fapLevel

public int

The negotiated Format and Protocol (FAP) level. The default level is 8.

maxSegmentLength

public int

The maximum length for a simple transmission to a queue manager. If the exit returns data which is to be sent to the queue manager, the length of the returned data must not exceed this value.

MQXCC_CLOSE_CHANNEL

public final static int

Deprecated

use MQC.MQXCC_CLOSE_CHANNEL instead.

MQXCC_OK

public final static int

Deprecated

use MQC.MQXCC_OK instead.

MQXCC_SEND_AND_REQUEST_SEC_MSG

public final static int

Deprecated

use MQC.MQXCC_SEND_AND_REQUEST_SEC_MSG instead.

MQXCC_SEND_SEC_MSG

public final static int

Deprecated

use MQC.MQXCC_SEND_SEC_MSG instead.

MQXCC_SUPPRESS_EXIT

public final static int

Deprecated

use MQC.MQXCC_SUPPRESS_EXIT instead.

MQXCC_SUPPRESS_FUNCTION

public final static int

Deprecated

use MQC.MQXCC_SUPPRESS_FUNCTION instead.

MQXR_INIT

public final static int

Deprecated

use MQC.MQXR_INIT instead.

MQXR_INIT_SEC

public final static int

Deprecated

use MQC.MQXR_INIT_SEC instead.

MQXR_SEC_MSG

public final static int

Deprecated

use MQC.MQXR_SEC_MSG instead.

MQXR_TERM

public final static int

Deprecated

use MQC.MQXR_TERM instead.

MQXR_XMIT

public final static int

Deprecated

use MQC.MQXR_XMIT instead.

MQXT_CHANNEL_RCV_EXIT

public final static int

Deprecated

use MQC.MQXT_CHANNEL_RCV_EXIT instead.

MQXT_CHANNEL_SEC_EXIT

public final static int

Deprecated

use MQC.MQXT_CHANNEL_SEC_EXIT instead.

MQXT_CHANNEL_SEND_EXIT

public final static int

Deprecated

use MQC.MQXT_CHANNEL_SEND_EXIT instead.

Methods

getMQCSP

public MQConnectionSecurityParameters getMQCSP();

Gets a MQConnectionSecurityParameters object. If no such object has been created, this method will return null.

Returns

setMQCSP

public void setMQCSP(MQConnectionSecurityParameters mqcsp);

Sets a MQConnectionSecurityParameters object. If this object is created and set when a security exit is invoked with MQC.MQXR_SEC_PARMS then any supplied information will be sent to the Queue Manager.

This applies to channel security exits only.

Parameters