IBM Version 5 Universal Remote User Manual


 
vi The XML Files: Development of XML/XSL Applications Using WebSphere Studio
Chapter 10. Development of XML-based Enterprise applications . . . . . 215
10.1 XML based Enterprise application architecture. . . . . . . . . . . . . . . . . . . 216
10.2 Solution outline for customer registration sample . . . . . . . . . . . . . . . . . 217
10.3 Developing the customer registration sample . . . . . . . . . . . . . . . . . . . . 219
10.3.1 Creating the Web tier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
10.3.2 Building the entity EJB and the database schema . . . . . . . . . . . . 238
10.3.3 Integrating the entity EJB with the Web tier . . . . . . . . . . . . . . . . . 250
10.3.4 Retrieval function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
10.4 Application deployment and testing. . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
10.4.1 Testing the registration application . . . . . . . . . . . . . . . . . . . . . . . . 254
Chapter 11. Light weight XML-based Enterprise Application . . . . . . . . . 257
11.1 SQL to/from XML libraries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
11.2 Solution outline for customer registration sample . . . . . . . . . . . . . . . . . 259
11.2.1 Customer registration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
11.2.2 Retrieving customer information . . . . . . . . . . . . . . . . . . . . . . . . . . 260
11.3 Developing the customer registration sample . . . . . . . . . . . . . . . . . . . . 262
11.3.1 Adding the libraries to the project . . . . . . . . . . . . . . . . . . . . . . . . . 262
11.3.2 XML Document format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
11.3.3 XMLToSQL architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
11.3.4 Modifying CustomerXSLServlet . . . . . . . . . . . . . . . . . . . . . . . . . . 264
11.3.5 Retrieving a customer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
11.3.6 Using datasource with SQLToXML and XMLToSQL class . . . . . . 277
11.3.7 Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
Chapter 12. Deploying your Web application . . . . . . . . . . . . . . . . . . . . . . 283
12.1 Manual deployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
12.1.1 Exporting your project from Application Developer . . . . . . . . . . . . 284
12.1.2 Installing the EAR file on WebSphere AEs . . . . . . . . . . . . . . . . . . 285
12.1.3 Starting the WebSphere AEs Admin Console. . . . . . . . . . . . . . . . 285
12.1.4 Installing the EAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 286
12.1.5 Testing the application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
12.2 Publishing to a remote server (AEs) . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
12.2.1 Creating a remote server instance . . . . . . . . . . . . . . . . . . . . . . . . 288
12.2.2 Publishing to remote server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
12.2.3 Testing the application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 295
Part 4. Appendixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297
Appendix A. Installing WebSphere Studio Application Developer. . . . . 299
Things to do before installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
Installing Application Developer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
Selecting your workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
Verifying the installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303