Build_jdbct4.xml – HP Integrity NonStop H-Series User Manual

Page 151

Advertising
background image

NOTE:

The

build.xml

file in the Spring distribution has been customized for the JDBC Type

2 driver and is provided as the

build_jdbct2.xml

file in the

SAMPLES.zip

file.

Changes to the

build_jdbct2.xml

file

The changes to the

build_jdbct2.xml

file are as follows:

For JDBC Type 2 driver, the following modifications were made:
1.

The

spring.root

property with the

<Spring Home>

directory was updated.

For example:
Before updating, the

spring.root

property in the

build_jdbct2.xml

file appeared

as:

<property name="spring.root" value="../.."/>

After updating, the

spring.root

property in the

build_jdbct2.xml

file appeared

as:

<property name="spring.root" value="<Spring Home>”/>

2.

The path of the Hibernate SQL/MX dialect JAR file (

hibernate3sqlmx.jar

) was set.

<path id="test-classpath">

contains multiple

<fileset>

tags. A new

<fileset>

tag was added to specify the path of the Hibernate dialect JAR file

location under the

<path>

tag:

<path id="test-classpath">
<fileset dir= “./etc”>
<include name="hibernate3sqlmx.jar"/>
</fileset>
….
….
</path>

— Similarly, a new

<fileset>

tag was added to specify the path of the Hibernate

dialect

JAR

file location under the

<copy>

tag:

<copy todir="${weblib.dir}" preservelastmodified="true">
<fileset dir= “./etc”>
<include name="hibernate3sqlmx.jar"/>
</fileset>
….
….
</copy>

3.

The path of the Commons DBCP JAR file (

commons-dbcp.jar

) was set.

A new

<fileset>

tag was added to specify the path of the Commons DBCP JAR file

location under the

<path>

tag:

<path id="master-classpath">
<fileset dir="${spring.root}/lib/jakarta-commons">
<include name="commons-dbcp.jar"/>
</fileset>
….
….
</path>

build_jdbct4.xml

(

<Spring Home>\samples\petclinic\build_jdbct4.xml

)

This is the build file for PetClinic when the JDBC Type 4 driver for database connectivity is used.
The

build_jdbct4.xml

file was modified to:

Update the Spring Root Location (

property:spring.root

)

Update the JDBC Type 4 Root Location (

jdbct4.root

)

Include the JDBC/MX Type 4 Driver (

t4sqlmx.jar

)

Customizing PetClinic

151

Advertising
This manual is related to the following products: