com.ibm.mq

Class MQExternalSendExit

  1. java.lang.Object
  2. extended bycom.ibm.mq.jmqi.JmqiObject
  3. extended bycom.ibm.mq.MQExternalUserExit
  4. extended bycom.ibm.mq.MQExternalSendExit
All implemented interfaces:
MQSendExit

  1. public class MQExternalSendExit
  2. extends MQExternalUserExit
  3. implements MQSendExit
Enables Java code to call a non-Java send exit. Chaining of exits is implemented by MQSendExitChain.

An MQExternalSendExit object holds all the information required to construct the MQCXP and MQCD structures that are required when calling the non-Java send exit.


Field Summary

Fields inherited from class com.ibm.mq.jmqi.JmqiObject
COMP_JM, COMP_JN, COMP_JO

Constructor Summary

Constructor and Description
MQExternalSendExit()
The default constructor.
MQExternalSendExit(java.lang.String libraryName,java.lang.String entryPointName,java.lang.String userData)
Constructs an object with an exit already defined.

Method Summary

Modifier and Type Method and Description
  1. byte[]
sendExit(MQChannelExit exitParms,MQChannelDefinition channelParms,byte[] data)
Calls the external user exit.
Methods inherited from class com.ibm.mq.MQExternalUserExit
getReasonCode, getUserData, setEntryPointName, setLibraryName, setNewBuffer, setUserData
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

MQExternalSendExit

  1. public MQExternalSendExit()
The default constructor.

MQExternalSendExit

  1. public MQExternalSendExit(java.lang.String libraryName,
  2. java.lang.String entryPointName,
  3. java.lang.String userData)
Constructs an object with an exit already defined.
Parameters:
libraryName - the name of the library module that contains the exit.
entryPointName - the name of the entry point in libraryName used by the exit.
userData - the data defined by the user.

Method Detail

sendExit

  1. public byte[] sendExit(MQChannelExit exitParms,
  2. MQChannelDefinition channelParms,
  3. byte[] data)
Calls the external user exit.
Specified by:
sendExit in interface MQSendExit
Parameters:
exitParms - the data on the exit.
channelParms - the data on the channel.
data - the raw message data.
Returns:
the raw message data after processing by the exit.
See Also: