About this task
Implement the startUpServerOp Operation first, and then you can configure
it.
- To implement the startUpServerOp Operation, do the following:
- Right-click the BTTJumpStartSampleServer Project,
and select . In the dialog box that pops up, enter com.ibm.btt.jumpstart.sample.operation in
the Package field, and click Finish.
- Copy the StartUpServerOperation.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 operation startupClientOp is
executed. Its execute() method creates BTT session context,
and binds the context to HTTP session.
- To configure the startUpServerOp Operation, do the following:
In the
sample, the configuration of startUpServerOp operation is defined in self-define
operation. BTT provides the Transaction Editor to create self-define operation
configuration file. Copy the startUpServerOp.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 Creating
an operation using the Transaction Editor.