background image
<< Deploying Stubs to a Running Server | Hot Deploying Steps >>
<< Deploying Stubs to a Running Server | Hot Deploying Steps >>

The wl_deploy Build Folder

62
Chapter 3 - Testing Enterprise JavaBeans
The wl_deploy Build Folder
Included with the QualityArchitect installation is a build folder called
wl_deploy
. This
build folder contains the build scripts required to build and deploy the Rational Bank
Account sample application to a WebLogic server that is already up and running. The
wl_deploy
build folder is located in the
<RQA HOME>\Samples\ejb\bankacct\vc
folder on
the computer where you installed QualityArchitect.
This build folder contains two command script files--
setbuildenv.cmd
and
wl_build.cmd
.
s
The
setbuildenv.cmd
file is a command script that is used to set the required
environment variables for the build and hot deployment process.
s
The
wl_build.cmd
file is a command script that is used to actually build the EJBs and
hot deploy them to a WebLogic server.
The
wl_deploy
folder also contains two subfolders:
RationalBankAcct
and
META-INF
.
s
The
RationalBankAcct
folder contains the source code for each of the EJBs required
for the Rational Bank Account sample.
s
The
META-INF
folder contains the XML deployment descriptors for each of those
EJBs.
Building and Hot Deploying the Sample Application and Stubs
To build and hot deploy the Rational Bank Account sample EJBs and stubs to a
WebLogic server:
1
Execute steps 3, 4, 5, and 6 from Deploying the Sample Application to WebLogic 5.1 on
page 45
if you are working with a WebLogic 5.1 server, or steps 3, 4, 5, and 6 from
Deploying the Sample Application to WebLogic 6.1 on page 47 if you are working with
a WebLogic 6.1 server. These steps only need to be executed once.
2
Open the
setbuildenv.cmd
file and set the required environment variables.
To do this, find the SET command for each of the required environment variables
and make sure that the value after the '=' sign is the correct value for the variable.
The required environment variables and their description follow:
JAVA_HOME contains the full path to the directory where the JDK/JRE was
installed.
WL_HOME contains the full path to the WebLogic home directory. The default
WebLogic home directory for version 5.1 is
C:\WebLogic.
The default WebLogic
home directory for version 6.1 is
C:\bea\wlserver6.1
.
WL_HOST contains the host server name for the running WebLogic server. The
default value is
localhost
for a local machine.