Manual
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