Adding dependency jar files, For declarative transaction – HP Integrity NonStop J-Series User Manual

Page 359

Advertising
background image

"Transaction Complete - One Employee Added to Employee Database");
return new ModelAndView("insertresult", "model", model);
}
}
}

Adding Dependency JAR Files

Add the dependency JAR files to the build path of EmpInfo, based on the type of transaction as
explained below:

For Declarative Transaction

To incorporate the features of Declarative Transaction in the EmpInfo application, the following
JAR files, other than the ones added while developing the EmpInfo application, must be added to
the EmpInfo project library path:

Table 10 Dependency JAR Files

Source Location

Dependency JAR Files

<Spring Dependency Home>\org.aspectj\
com.springsource.org.aspectj.weaver\1.6.5.RELEASE

com.springsource.org.aspectj.weaver-1.6.5.
RELEASE.jar

<Spring Dependency
Home
>\net.sourceforge.cglib\
com.springsource.net.sf.cglib\2.2.0

com.springsource.net.sf.cglib-2.2.0.jar

To add these dependency JAR files in the project library path and to resolve the J2EE module
dependency on these JAR files, follow the instructions explained in the

Adding Dependency JAR

Files in the Project Library Path

section of the

“Getting Started with Spring” (page 75)

chapter.

This completes the modifications in the EmpInfo application to incorporate Declarative Transaction.

Example of Using Spring Transaction Manager 359

Advertising
This manual is related to the following products: