signInOp Operation

About this task
Implement the signInOp Operation first, and then you can configure it.
  1. To implement the signInOp Operation, do the following:
    1. Copy the SampleConstants.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. The file defines some constants used in the operation.
    2. Copy the SignInOp.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. Copy the Login.java and LoginImpl.java from <toolkit_root>\samples\BTTJumpStartSampleEAR.ear\BTTJumpStartSampleServer.jar\com\ibm\btt\jumpstart\sample\login\ to the com.ibm.btt.jumpstart.sample.login package of BTTJumpStartSampleServer Project.

      They are the interface and implementation of login service in Access Control component of the business component.

    4. The operation is called when the client side signinClientOp is executed. In its execute() method, it uses login service to validate the right of the user.
  2. To configure the signInOp Operation, do the following:

    BTT provides the Transaction Editor to create self-define operation configuration file. Copy the signInOp.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.