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:
- In the Transaction editor, click the Service tab.
- Right-click in a blank area of the Service panel, and then
click New Child. You can then select between service or Web service.
- 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.
- In the Java Class page, select the package in which you want to
store the Java file.
- In the Name field of the Java Class page, enter a name for the
Java file. Click Finish.
- 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.