HomeOracle Page 6 - Creating, Copying, and Managing OC4J Instances
OC4J Applications Page - Oracle
In this second part of a multi-part series covering the management of OC4J and configuring J2EE applications with Oracle 10g Application Server, we focus in on OC4J instances. This article is excerpted from chapter eight of the Oracle 10g Application Server Exam Guide, written by Sam Alapati (McGraw-Hill; ISBN: 0072262710).
The OC4J Applications page lets you deploy and maintain Web applications. Using this page, you deploy WAR files or new OC4J applications. When you deploy a new WAR file, the WAR application is automatically wrapped by the Application Server Control into a J2EE application—that is, into a .ear file. This .ear file is used to deploy the Web application’s WAR file. After you deploy a new WAR application,
exam watch: The default application is the parent application for all applications in an OC4J instance.
its name will appear in the form of a .ear file in the Deployed Applications table on the OC4J Server Applications page. The Deployed Applications table shows the name, path, and parent application of all deployed applications as well as the application’s performance metrics, such as the number of active requests and request processing time.
You can deploy a new .ear file to a single OracleAS instance, or it can be simultaneously deployed to several OC4J instances that are part of a cluster.
You can undeploy a WAR file by using the OC4J Applications page. If you wish to redeploy an application, you can’t use the Applications page directly. In order to redeploy an application, you must first undeploy the application and deploy it again. Here are the steps for redeploying a WAR file:
Click the Applications tab in the OC4J home page.
Select the application you wish to deploy from the Deployed Applications table.
Click the Undeploy button.
Click the Deploy WAR file. You must use the name of the original application you undeployed before performing this step.
on the job: You can’t manage OC4J instances using the OC4J standalone tool admin.jar. However, you can manually modify the XML configuration files and then use the dcmctl tool to notify the Application Server that the files were edited by you directly. The dcmctl command to do this is dcmctl updateconfig -ct oc4j.
exam watch: In order to deploy, redeploy, or undeploy a J2EE application, the application files must be archived in an EAR or WAR file archival format.
You will learn how to deploy Web and J2EE applications using the OC4J Applications page later in this chapter.