Creating the applicationcontext.xml file – HP Integrity NonStop J-Series User Manual

Page 106

Advertising
background image

Figure 29 Project Explorer View

Integrating the Web-tier of EmpInfo with NonStop SQL/MX Database

This section describes the following tasks:

1.

“Creating the applicationContext.xml File” (page 106)

2.

“Creating the jdbc.properties File” (page 107)

3.

“Modifying the EmpInfo-servlet.xml File” (page 109)

4.

“Improving the Controller” (page 110)

5.

“Modifying the web.xml File” (page 111)

6.

“Adding Dependency JAR Files” (page 112)

7.

“Creating Database Catalog, Schema, and Tables on NonStop” (page 113)

Creating the applicationContext.xml File

To create the applicationContext.xml file, complete the following steps:
1.

Create the applicationContext.xml file in the EmpInfo/WebContent/WEB-INF/
directory, as described in

“Creating the EmpInfo-servlet.xml File” (page 86)

.

2.

Create a new XML file in the EmpInfo/WebContent/WEB-INF directory and type the name
of the XML file as applicationContext.

3.

Modify the applicationContext.xml file to add a bean definition of the EmployeeDao
class. After modification, the applicationContext.xml file must appear as:

106 Getting Started with Spring

Advertising
This manual is related to the following products: