3.6 JSP files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
3.6.1 The JSP components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
3.6.2 Implementation of JSP in our Web application. . . . . . . . . . . . . . 101
3.7 Accessing data through a Java bean . . . . . . . . . . . . . . . . . . . . . . . . 103
Chapter 4. Operational considerations
. . . . . . . . . . . . . . . . . . . . . . . . 107
4.1 Facility administration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
4.1.1 IBM HTTP Server and WebSphere administration . . . . . . . . . . 107
4.1.2 DB2 operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
4.1.3 Domino operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
4.2 Facility monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
4.2.1 Monitoring WebSphere . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
4.2.2 DB2 server monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
4.2.3 Domino monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
4.3 Routine maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
4.3.1 IBM HTTP Server maintenance . . . . . . . . . . . . . . . . . . . . . . . . 130
4.3.2 DB2 routine maintenance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
4.3.3 Routine Domino maintenance. . . . . . . . . . . . . . . . . . . . . . . . . . 132
4.4 Troubleshooting overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
4.4.1 IBM HTTP Server and WebSphere log files . . . . . . . . . . . . . . . 134
4.4.2 DB2 diagnostic log file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Chapter 5. Extending the case study
. . . . . . . . . . . . . . . . . . . . . . . . . 139
5.1 Utilizing advanced features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
5.1.1 WebSphere . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
5.1.2 IBM HTTP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
5.2 Product limitations in Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
5.2.1 The RequestDispatcher class . . . . . . . . . . . . . . . . . . . . . . . . . . 142
5.2.2 JDBC connections for Domino . . . . . . . . . . . . . . . . . . . . . . . . . 143
Appendix A. SQL scripts for creating the USERSTUF tables
. . . . . . . 145
A.1 The USERINFO table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
A.2 The USERVERIFY table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
A.3 The USERPROFILE table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
A.4 The USERORDERS table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
Appendix B. Java code relating to DB2
. . . . . . . . . . . . . . . . . . . . . . . . . 147
B.1 Java servlet TestDB2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
B.2 Java servlet AccessUserstuf. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
B.3 Java Bean orders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
Appendix C. Java code relating to Domino database
. . . . . . . . . . . . . 159
C.1 Java servlet TestDomino . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
C.2 Java servlet VBDList10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
iv
Linux Web Hosting with WebSphere, DB2, and Domino