Deploying Stubs to a Running Server
Deploying Stubs to a WebLogic Application Server
Delete the .class files from the JAR file.
Add the stubbed .class files to the JAR file:
icon on the Winzip toolbar.
Navigate to the stub directory and make sure that
Save full path info
Select all three .class files and then click
Close the archive file.
Copy the modified JAR file to the appropriate WebLogic directory, for example:
, for WebLogic 5.1.
, for WebLogic 6.1.
Before executing any test scripts and stubs, be sure that you have met the
requirements discussed in Requirements for EJB Testing on page 31, particularly the
classpath requirements for WebLogic and the classpath requirements for playback
Restart the WebLogic application server to deploy the stubs.
Deploying Stubs to a Running WebLogic Server (Hot Deployment)
With WebLogic, it is possible to deploy these stubs to a WebLogic server without
stopping the server. This is known as hot deployment. With this feature, you can deploy
your generated stubs and test your deployed EJBs right away, before they are
deployed permanently to the WebLogic server. Any EJBs that you hot deploy to the
WebLogic server are only deployed temporarily for staging and testing purposes.
Once you stop and restart the server, the EJBs will no longer be deployed.