background image
<< The wl_deploy Build Folder | Undeploying the Sample Application >>
<< The wl_deploy Build Folder | Undeploying the Sample Application >>

Hot Deploying Steps

Deploying Stubs to a WebLogic Application Server
63
WL_PORT contains the port number for the running WebLogic server. The
default value is 7001.
WL_PASSWORD contains the system password for the WebLogic server. This
is required for the hot deployment process.
WL_DEPLOYMODE contains the WebLogic deployment mode to use when
processing the built EJBs. Possible options are deploy, undeploy, and update.
Note:
If you have already hot deployed EJBs to a WebLogic server, you cannot
hot deploy them again. You either have to undeploy or update the deployed
EJBs. For directions, see Undeploying the Sample Application on page 64.
WL_DEPLOYNAME contains the label name to use for EJBs deployed to the
WebLogic server.
BUILD is a flag variable used to turn build mode on or off. Use 1 for on and 0
for off.
DEBUG is a flag variable used to turn debug mode on or off. Use for on and 0
for off.
3
Back up the actual EJB files in the
<RQA
HOME>\Samples\ejb\bankacct\vc\wl_deploy\RationalBankAcct
folder to a separate
directory so you can restore the original EJBs, if necessary.
The
RationalBankAcct
folder contains the source code for each of the EJBs required
for the Rational Bank Account sample.
4
Copy the generated stubs to the
<RQA
HOME>\Samples\ejb\bankacct\vc\wl_deploy\RationalBankAcct
folder, essentially
replacing the actual EJB files contained there.
5
Execute the
wl_build.cmd
command script to build the EJB code for the Rational
Bank Account sample and to deploy the EJBs to a running WebLogic server.
The
wl_build.cmd
command script:
a
Calls the
setbuildenv.cmd
script and sets the required environment variables.
b
Compiles the EJB source code.
c
Generates the container code for the EJBs.
d
Puts the EJB classes and container classes in a JAR file and hot deploys the EJB
JAR file to a WebLogic server.
Once you successfully execute the
wl_build.cmd
script, you can immediately start
testing the deployed EJBs on the running WebLogic server.