360 IBM Branch Transformation Toolkit 5.1 Migration and Usage Guidelines
3. Input the arbitrary Account Number and Amount, and then click Withdrawal.
The result page with the hard-coded values will be displayed as shown in
Figure 8-97.
Figure 8-97 The result page
8.3.9 Adding the Journal service
The Branch Transformation Toolkit provides a set of service objects that enable
an application to complete an operation. These services include client/server
connectivity, financial devices for input and output operations, table mapping
database service, electronic journal, generic pool, and so on.
In Branch Transformation Toolkit V5.1, services can be categorized into client
side services and server side services. For those services that belong to the
client side, only Java clients can utilize them. Server side services can be
invoked by a business process or a Single Action EJB.
This section discusses the electronic journal service. Our discussion is divided
into two parts, that is, setting up the service infrastructure and constructing the
dummy journal service.
Setting up the service infrastructure
To add a dummy journal service such as the CHA and Formatter services, the
Service EJB project bttsvcinfra.jar should be imported into the application. There
are four different service invocation types in Branch Transformation Toolkit v5.1.
If you are using the WSIF invocation type, the extra Service Web project
BTTServicesInfraWeb.war should be imported as well.
Importing utility JARs
To import the utility JAR files, follow these steps:
1. In the J2EE perspective, select BTTBank project in the Project Navigator
view, right-click, and select Import from the context menu.
Running H/F 1 361
2. In the Import pop-up window, select File system as the import source, and
then click Next.
3. In the next dialog box, click Browse and navigate to <BTT_install_dir>/jars,
and then click OK. Select bttjdbjsvc.jar and bttjdbtsvc.jar. Click Finish, as
shown in Figure 8-98.
Figure 8-98 Import bttjdbjsvc.jar and bttjdbtsvc.jar into the BTTBank project
Importing the Service EJB project bttsvcinfra.jar
1. Open the J2EE perspective and get into the J2EE Hierarchy view.
2. Right-click BTTBank in the Enterprise Applications folder. Select Import
Import EJB Jar.
362 IBM Branch Transformation Toolkit 5.1 Migration and Usage Guidelines
3. Input the following values for EJB import as shown in Figure 8-98 on
page 361, and click Finish:
EJB JAR File: <BTT_install_dir>\jars\bttsvcinfra.jar
EJB project: bttsvcinfraEJB
EAR project: BTTBank
.
Figure 8-99 Import the bttsvcinfraEJB project
Setting up project properties for bttsvcinfraEJB
To set up the project properties, follow these steps:
1. Select the Project Navigator view tab. The bttsvcinfra EJB Project appears.
2. Right-click the bttsvcinfraEJB project, and select Properties from the
context menu.
Running H/F 1 363
3. In the pop-up window, select Java JAR Dependencies. Select the Use EJB
JARs radio button, and then ensure that the bttbase.jar, bttjdbjsvc.jar, and
bttjdbtsvc.jar check boxes have been selected in the JAR/Module list. Click
Apply, as shown in Figure 8-100.
Figure 8-100 Add bttbase.jar, bttjdbjsvc.jar, and bttjdbtsvc.jar as dependent JARs
364 IBM Branch Transformation Toolkit 5.1 Migration and Usage Guidelines
4. In the same pop-up window, select Java Build Path, and then click the
Libraries tab. Ensure that three JARs, that is, bttbase.jar, bttjdbjsvc.jar,
and bttjdbtsvc.jar are added to the build path, as shown in Figure 8-101.
Figure 8-101 Add bttbase.jar, bttjdbjsvc.jar, and bttjdbtsvc.jar into build path
5. Click OK.
Generating deployment and RMIC code for bttsvcinfraEJB project
To generate the deployment and RMIC code, follow these steps:
1. In the Project Navigator view, right-click the bttsvcinfraEJB project and
select Generate Deployment and RMIC Code.
2. In the pop-up dialog window, click Select all, and then Finish.

Get IBM Branch Transformation Toolkit 5.1 Migration and Usage Guidelines now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.