beautypg.com

HP Integrity NonStop J-Series User Manual

Page 32

background image

-Djava.library.path=<JdbcMX lib path>

-Djdbcmx.transactionMode=external

com.hp.programmatic.MainProgrammatic

where <JdbcMX lib path> is the location where the JDBC T2 driver is installed.

For example,

java -cp "/home/sash_usr/spring/samples/TMFAdapter/TMFAdapter_Sample_Programmatic.jar:
/home/sash_usr/spring/samples/TMFAdapter/lib/*"
-Djava.library.path=/usr/tandem/jdbcMx/current/lib
-Djdbcmx.transactionMode=external com.hp.programmatic.MainProgrammatic

Annotation:

java -cp "<NonStop TMF Adapter

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

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

-Djava.library.path=<JdbcMX lib path>

-Djdbcmx.transactionMode=external com.hp.annotation.MainAnnotation

AOP:

java -cp "<NonStop TMF Adapter

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

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

-Djava.library.path=<JdbcMX lib path>

-Djdbcmx.transactionMode=external com.hp.aop.MainAOP

Using a JDBC Type 4 driver:

If you use a JDBC Type 4 driver, you must modify the jdbc.url, jdbc.username, and
jdbc.password

entries in application.properties, and then build the jar files. If you

modify the default catalog and schema, then those entries must also be updated in the
application.properties

files. Next, follow these steps to build and deploy the jar files:

1.

When you extract the sample application on a Windows system, the build files are placed in
the <TMF Adapter Home>\Samples\TMF_Adapter_Sample location.

2.

Go to the location using the command line in your Windows system.

3.

Create the jar files by using the following command:

ant -f build.xml jar

If the Java files need to be compiled, use:

ant -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

4.

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

on the NonStop system.

5.

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/*"

com.hp.programmatic.MainProgrammatic

32

Spring Framework

This manual is related to the following products: