About this task
When creating a service, you can either create a global service or
a local service. Do the following steps to create a new service:
- Create the service classes:
- To create a global service class, do the following:
- Create a new class extending com.ibm.btt.base.Service, which is located
in bttcore.jar.
- Open btt.xml file, and find the service section and add the following
code to the classtable configuration:
field id="newService" value="package.NewService" /
- If your Transaction Editor is opened before you define the extensions,
right-click any blank space in the editor and select Reload BTT
Global Settings in the pop-up menu so that your changes can be
applied.
- To create a local service class, you can create a new class
extending com.ibm.btt.base.Service, which is located in bttcore.jar.
- Create service:
After you created the service classes, double-click
the transaction to open the Transaction Editor, and in the
Service tab,
right-click anywhere in the Service Editor area, and select .
The
Service Creation Dialog opens, there are three
options: