xml and click on OK. A dwr.xml file gets created. Create a directory
called lib in the WEB-INF directory and copy the dwr.jar file to the lib
directory. The directory structure of the DWR application and project is
shown in Fig. 5.1.
92 5 Ajax with Java-DWR
Fig. 5.1 DWR Application Structure
Next, we shall configure a connection with the JBoss application
server. Select View>Application Server Navigator to display the
Application Server Navigator. In the Application Server Navigator
right-click on the DWRApp node and select New Application
Server Connection as shown in Fig. 5.2.
5.3 Creating a DWR Application 93
Fig. 5.2 Creating a New Application Server Connection
The Application Server Connection Wizard gets started. Click on
Next. Specify Connection Name as JBossConnection, and select
Connection Type as JBoss 4.x. Click on Next as shown in Fig. 5.3.
Fig. 5.3 Selecting Connection Type
In the JBoss Directory window Host is specified as localhost.
Specify the deploy directory and click on Next as shown in Fig. 5.4.
94 5 Ajax with Java-DWR
Fig. 5.4 Specifying Deploy Directory
Click on Finish. A JBoss application server connection gets created as
shown in Fig. 5.5.
Fig. 5.5 Connection to JBoss Application Server
We shall modify the DWR application files. The dwr.xml file is used to
specify creators and converters. The DTD5 for the dwr.xml file may be
used to create a dwr.xml file.
Pages:
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96