beautypg.com

For declarative transaction, For programmatic transaction – HP Integrity NonStop H-Series User Manual

Page 381

background image

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 18-1 Dependency

JAR

Files

Source Location

Dependency

JAR

Files

<Spring Home>\lib\aspectj

aspectjweaver.jar

<Spring Home>\lib\cglib

cglib-nodep-2.1_3.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

chapter.

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

Figure 18-3

shows the Project Explorer View when Declarative Transaction is used.

Figure 18-3 Project Explorer View: Declarative Transaction

For Programmatic Transaction

To incorporate the features of Programmatic Transaction in the EmpInfo application, no additional

JAR

files, other than the ones added while developing the EmpInfo application, are required.

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

Figure 18-4

shows the Project Explorer View when Programmatic Transaction is used.

Example of Using Spring Transaction Manager

381

This manual is related to the following products: