Class MQExternalSendExit
java.lang.Object
com.ibm.mq.jmqi.JmqiObject
com.ibm.mq.MQExternalUserExit
com.ibm.mq.MQExternalSendExit
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionThe default constructor.MQExternalSendExit(String libraryName, String entryPointName, String userData) Constructs an object with an exit already defined. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]sendExit(MQChannelExit exitParms, MQChannelDefinition channelParms, byte[] data) Calls the external user exit.Methods inherited from class MQExternalUserExit
getReasonCode, getUserData, setEntryPointName, setLibraryName, setNewBuffer, setUserDataMethods inherited from class com.ibm.mq.jmqi.JmqiObject
getJmqiEnvironment
-
Constructor Details
-
MQExternalSendExit
public MQExternalSendExit()The default constructor. -
MQExternalSendExit
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 Details
-
sendExit
Calls the external user exit.- Specified by:
sendExitin interfaceMQSendExit- 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:
-