Undeploying the Sample Application
64
Chapter 3 - Testing Enterprise JavaBeans
Undeploying the Sample Application
To undeploy the sample application:
1
Open the
setbuildenv.cmd
file.
2
Set the WL_DEPLOYNAME variable to the deployment name for the Rational
Bank Account EJBs.
If you deployed the Rational Bank Account EJB sample to a WebLogic 5.1 server,
set WL_DEPLOYNAME to <
WL_HOME
>\
myserver\RatlBankAcct\RatlBankAcct51.jar
.
If you deployed the Rational Bank Account EJB sample to a WebLogic 6.1 server,
set WL_DEPLOYNAME to
RatlBankAcct61
.
3
Set the BUILD variable to 0.
4
Set the other required environment variables with the appropriate values.
5
Make sure that the WebLogic Server is running.
6
Execute the undeployment process by running the
wl_build command
script.
This process undeploys the deployed Rational Bank Account EJBs from the
running WebLogic server.
Deploying Your Own Stubs
To deploy stubs of your own EJBs:
1
Create a new staging environment for your EJBs.
In this staging environment you will need a directory hierarchy containing your
EJB source files, XML deployment descriptors, and the command scripts. Be sure
that your source file directory matches the package structure of your EJBs. Also be
sure that your deployment descriptor directory is
META-INF.
2
Copy your EJB source files to the EJB source file directory.
3
Copy your deployment descriptors to the deployment descriptor directory.
4
Copy the
setbuildenv.cmd
file and the
wl_build.cmd
file to your staging environment
and then modify the environment variables in those files for your particular EJBs.
5
Run the
wl_build.cmd
file.