beautypg.com

Modifying the applicationcontext.xml file, Figure 19-1 – HP Integrity NonStop H-Series User Manual

Page 389

background image

Figure 19-1 Project Explorer View

Modifying the EmpInfo application involves the following tasks:

Modifying the applicationContext.xml File

Modifying the EmployeeDao.java File

Creating the Employee.hbm.xml File

Removing the EmployeeRowMapper.java File

Adding Dependency

JAR

Files

Modifying the

applicationContext.xml

File

Modify the

EmpInfo/WebContent/WEB-INF/applicationContext.xml

file, so that it uses

the Hibernate SessionFactory to connect to the

employee SQL/MX

database table using the

following steps:

1.

Specify the SessionFactory in the

applicationContext.xml

file as shown:




Employee.hbm.xml




org.hibernate.dialect.SqlmxDialect

Example of Integrating Hibernate into Spring

389

This manual is related to the following products: