Running tmfadapter on nonstop – HP Integrity NonStop J-Series User Manual

Page 31

Advertising
background image

Table 7 TMFAdapter Dependent Libraries (continued)

Source Location

Dependency JAR Files

<Hibernate_3.6.8_Home>\lib\required

slf4j-api-1.6.1.jar

<TMF Adapter Home>\SpringTMFAdapter

springtmf.jar

<JDBC T4 Driver Installation Directory>

t4sqlmx.jar

<NonStop Java Home>/jre/lib/ext

tmf.jar

util.jar

<JDBC T2 Driver Installation
Directory>/lib

jdbcMx.jar

Running TMFAdapter on NonStop

To run the TMFAdapter application, you can use either JDBC Type 2 driver or JDBC Type 4 driver.
When you extract the sample application on a Windows system, the following jar files for
Programmatic, Annotation, and AOP are placed in the <TMF Adapter
Home
>\Samples\TMF_Adapter_Sample\jar\t2

location:

TMFAdapter_Sample_Programmatic.jar

TMFAdapter_Sample_Annotation.jar

TMFAdapter_Sample_AOP.jar

Using a JDBC Type 2 driver:

If you use a JDBC Type 2 driver and have not modified the default catalog and schema when
setting up the database, you can use these packaged jar files as is for execution (starting with step
3).

If you modify the default catalog and schema, then update the schema and catalog entries in the
application.properties

file and follow these steps to build and deploy the jar files:

1.

Go to the location where the samples are extracted using the command line in your Windows
system.

2.

Create the jar files by using the following command:

ant -f build.xml jar

If the Java files must be compiled, use:

ant -lib <TMF Adapter Home>\Samples\TMF_Adapter_Sample\lib\ -f

build.xml cleanjar

The following jar files are created under <TMF Adapter
Home
>\Samples\TMF_Adapter_Sample\jar

:

TMFAdapter_Sample_Programmatic.jar

TMFAdapter_Sample_Annotation.jar

TMFAdapter_Sample_AOP.jar

3.

Transfer the jar files (via FTP) to <NonStop TMF Adapter
Home
>/spring/samples/TMFAdapter/

on the NonStop system.

4.

Execute the commands to run the jar files:

Programmatic:

java -cp "<NonStop TMF Adapter

Home>/spring/samples/TMFAdapter/TMFAdapter_Sample_Programmatic.jar:<NonStop

TMF Adapter Home>/spring/samples/TMFAdapter/lib/*"

Integrating Spring with Transaction Management Facility (TMF)

31

Advertising
This manual is related to the following products: