Defining services in transaction editor

About this task

BTT provides a set of service objects that enable an application to complete an operation. These services include host communications, journaling, store-and-forward for offline operations, financial devices for input and output operations, and more. You can use the Transaction editor to add the services that will be required during the transaction execution.

Procedure

To define data for a new service, do the following steps:

  1. In the Transaction editor, click the Service tab.
  2. Right-click in a blank area of the Service panel, and then click New Child. You can then select between service or Web service.
  3. If you select the service option, the Service Creation Dialog appears. You can then choose an existing service definition either from the global BTT definition or from the local class path, or you can create a new service, as shown in the figure below:

    • If you want to create a fully new service, in the Service Creation Dialog window, select Create new class, and then click Create. The Java Class page displays.
      1. In the Java Class page, select the package in which you want to store the Java file.
      2. In the Name field of the Java Class page, enter a name for the Java file. Click Finish.
      3. In the Service Creation Dialog window, click OK.
    • If you want to choose a service from the global BTT definition, you need to define the global services in the btt.xml file->service->classTable .
    • If you want to choose a service from local classpath, you need to define the Java classes for the service. Then it will load all the Java classes implementing a service that are accessible from the current BTT project.

Results

In all cases, the implementation class field is prefilled with either the selected class or with the new implementation class.