
27
Additional Excercises
How to Run WebSphere Application Server
Version 5 Samples on DB2
: Introductory
Tom Krieger (tckriege@us.ibm.com), WebSphere Application Server Samples, IBM
Research Triangle Park
07 Apr 2003
This article walks you through the steps to configure the Plants by WebSphere sample (from
the Sample Gallery in WebSphere Application Server V5) to run with an IBM DB2 database.
It explains how to set up the DB2 database, populate it, and then configure the Application
Server's resources to communicate with it.
Introduction
IBM ® WebSphere® Application Server Version 5.0 (hereafter called Application Server)
comes with a set of samples that demonstrate the Application Server's robust functionality.
The samples come complete with source code so that you can use them to learn how to
implement Web technologies, such as servlets, Java Server Pages (JSP), and Enterprise Java
Beans (EJB). Among these, the Plants by WebSphere sample is a complete Web application
that accesses information stored in a database. To make it easy for you to get started, this
sample runs "out of the box" on a Cloudscape database. In a real-world environment, a
production-level database, such as IBM DB2®, is necessary.
This article walks you through the steps to configure the Plants by WebSphere sample,
shown in Figure 1, to run with the IBM DB2 database. It explains how to set up the necessary
database in DB2, how to populate this database with the pictures and data for the Plants by
WebSphere store, and how to configure resources in the Application Server for
communication with DB2.
Komentáře k této Příručce