startUpServerOp Operation

About this task

Implement the startUpServerOp Operation first, and then you can configure it.
  1. To implement the startUpServerOp Operation, do the following:
    1. Right-click the BTTJumpStartSampleServer Project, and select New > package. In the dialog box that pops up, enter com.ibm.btt.jumpstart.sample.operation in the Package field, and click Finish.
    2. 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.
    3. 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.
  2. 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 Defining operation in transaction editor.