beautypg.com

Modifying empinfo based on the type of transaction, Figure 18-1 – HP Integrity NonStop H-Series User Manual

Page 373

background image

Figure 18-1 Project Explorer View

Modifying the EmpInfo application involves the following tasks:

1.

Modifying EmpInfo based on the Type of Transaction

For Declarative Transaction

Creating IEmployeeDao.java

Modifying EmployeeController.java File

Modifying

applicationContext.xml

File

For Programmatic Transaction

Modifying

applicationContext.xml

File

Modify the

EmployeeController.java

File

2.

Adding Dependency

JAR

Files

For Declarative Transaction

For Programmatic Transaction

Modifying EmpInfo based on the Type of Transaction

In Declarative Transaction Management, all the transactions are set and managed by the proxy
factories configured in the Spring configuration file. Therefore, you must modify the

applicationContext.xml

file.

In Programmatic Transaction Management, transaction management is done directly in the code.
Therefore, you must modify the

EmployeeController.java

file.

The following sections describe the modifications required in the

applicationContext.xml

file and the

EmployeeController.java

file.

Example of Using Spring Transaction Manager

373

This manual is related to the following products: