background image
<< Configuring VAJ | Starting the EJB Server >>
<< Configuring VAJ | Starting the EJB Server >>

Deploying the Sample Application

42
Chapter 3 - Testing Enterprise JavaBeans
Deploying the Sample Application in the VAJ Test Environment
This section describes how to deploy the sample application in the VAJ Test
Environment.
Creating Database Tables
1
In VAJ, click the
EJB
tab to view the EJB window.
You should now see the RationalBankAcctSampleEJBs group in the window.
2
Right-click
RationalBankAcctSampleEJBs
and click
Add To > Server Configuration
.
3
Right-click
EJB Server (server 1)
and click
Properties
.
4
Right-click
EJB Server (server 1)
again and choose
Create Database Table
.
This creates the database tables that are required for the sample.
Starting the Persistent Name Server
1
From the Workbench window, click
Workspace > Tools > WebSphere Test
Environment
.
This opens the WebSphere Test Environment Control Center.
2
Click
Persistent Name Server
and click
Start Name Server
.
The Persistent Name Server is the JNDI server that is required for the naming
service.
You know that the server has been started when the following message appears at
the bottom of the WebSphere Test Environment Control Center:
Persistent Name Server is Started
Enter
jdbc:db2:
<database name>.
Select COM.ibm.db2.jdbc.app.DB2Driver.
Enter the administration ID that was chosen
when DB2 was installed, usually
db2admin
.
Enter the administration password that was
chosen when DB2 was installed, usually
db2admin
.
Click OK.