You can use either the Application Server or the dcmctl utility to deploy Web applications. In the following subsections, examples are given of both approaches to Web application deployment. Using the dcmctl Utility Using the dcmctl utility, you can deploy, undeploy, and redeploy Web applications by using the supplied WAR files. Here’s an example showing how to use dcmctl to deploy a WAR file: dcmctl deployapplication -file /test/testapp.war -a testapp \ In the preceding dcmctl command, the various options stand for the following:
Note that you mustn’t use the -rc option when deploying EAR files. To redeploy a Web application, use the dcmctl command as in the foregoing example, but with the redeployApplication option instead of the deployApplication option. To undeploy an application, use the undeployApplication option. Using the Application Server Control You deploy WAR files in order to deploy Web applications. However, when you deploy a WAR file for the first time, the Application Server Control wraps the application in an EAR file, thus making it a J2EE application. Use the following steps to deploy a Web application through the Application Server Control’s Deploy Web Application page, which displays a list of all OC4J applications deployed on the OC4J server:
Please check back next week for the conclusion to this article.
blog comments powered by Disqus |