background image
<< Deploying to WebLogic 6.1 | Configuring Visual Cafe >>
<< Deploying to WebLogic 6.1 | Configuring Visual Cafe >>

Deploying to the Sun J2EE Reference Server

48
Chapter 3 - Testing Enterprise JavaBeans
7
Launch the WebLogic 6.1 Application Server that includes the deployed sample:
Click
Start > Programs > BEA Weblogic E-Business Platform > WebLogic Server 6.1 >
Examples > Start Examples Server
.
Deploying the Sample Application to the Sun J2EE Reference Server
To deploy the sample application to the Sun J2EE Reference Server, you must first
have the latest J2EE SDK v1.2.1 installed along with the required matching JDK (For
details about required JDKs see Supported JDKs on page 32.). Throughout this section,
<J2EE_HOME>
is used to represent the currently installed location for the J2EE SDK.
To deploy the sample application to the Sun J2EE Reference Server:
1
Configure the data source that the J2EE SDK will use for the Bank Account sample.
a
Open the
<J2EE_HOME>\config\default.properties file
.
b
Find the line for the
property jdbc.datasources
. At the end of the line, append the
following text:
|jdbc/BankAcctDB|jdbc:cloudscape:rmi:CloudscapeDB;create=true
2
Start the Cloudscape database server.
In a separate command prompt window, change the directory to
<J2EE_HOME>\bin
and type the following text:
cloudscape -start
3
Start the J2EE Reference Server.
In a separate command prompt window, change the directory to
<J2EE_HOME>\bin
and type the following text:
j2ee -verbose
4
Launch the Sun Deployment tool that is used to deploy the sample application to
the Sun J2EE Reference Server.
a
In a separate command prompt window, change the directory to
<J2EE_HOME>\bin
and type the following text:
deploytool
b
In the Sun Deployment tool application window, click
File > Open Application
.
c
In the Open File dialog box, browse to the
<RQA_Home>\Samples\EJB\BankAccount\J2EE
directory and select the
RatlBankAcctEE.EAR
file.
d
Click
Tools > Deploy Application
.