About this task
Implement the Withdraw Operation first, and then you can
configure it.
- To implement the Withdraw Operation, do the following:
- Copy the WithdrawOperation.java from <toolkit_root>\samples\BTTJumpStartSampleEAR.ear\BTTJumpStartSampleServer.jar\com\ibm\btt\jumpstart\sample\operation\ to
the com.ibm.btt.jumpstart.sample.operation package
of BTTJumpStartSampleServer Project.
- The operation is called when the client side withdrawOperation4Proc is
executed.
- Copy the following files from <toolkit_root>\samples\BTTJumpStartSampleEAR.ear\BTTJumpStartSampleServer.jar\com\ibm\btt\jumpstart\sample\opstep\ to
the com.ibm.btt.jumpstart.sample.opstep package of
BTTJumpStartSampleServer Project:
- JournalRequestDataStep.java
- SendHostStep.java
- JournalReplyDataStep.java
Notes:
- These java files are responding to opStep journalHostRequestDataStep,
SendHostStep and JournalReplyDataStep respectively.
- When BTTOperation withdrawOp executes, OpStep
journalHostRequestDataStep, SendHostStep and JournalReplyDataStep
execute sequentially.
- journalHostRequestDataStep records withdraw request with EJ; SendHostStep
simulates the request to host by invoking dummy JCA; JournalReplyDataStep
records withdraw response with EJ
- Copy the JournalUtil.java from <toolkit_root>\samples\BTTJumpStartSampleEAR.ear\BTTJumpStartSampleServer.jar\com\ibm\btt\jumpstart\sample\util\ to
the com.ibm.btt.jumpstart.sample.util package of
BTTJumpStartSampleServer Project. This is a util class used in journalHostRequestDataStep
and SendHostStep;
- To configure the Withdraw Operation, do the following:
In the
sample, the configuration of withdraw is define in self-define operation,
which includes operation, context, and format. BTT provides the Transaction
Editor to create self-define operation configuration file. Copy the
withdrawOp.xml from <toolkit_root>\samples\BTTJumpStartSampleEAR.ear\BTTJumpStartSampleServer.jar\
definitions\ to the definitions package of BTTJumpStartSampleServer
Project. For information about how to configure operation configuration
file using Transaction Editor, see Defining an operation for the transaction.