Deploying ADF Application to OC4J Server
170 likes | 193 Vues
Learn to create a remote OracleAS Containers for J2EE connection, configure OC4J for deployment, and use JDeveloper Deployment Wizard. Explore packaging and distributing considerations, deploy to OC4J server, and customize deployment settings.
Deploying ADF Application to OC4J Server
E N D
Presentation Transcript
Objectives • After completing this lesson, you should be able to do the following: • Create a remote OracleAS Containers for J2EE (OC4J) Connection in JDeveloper • Configure OC4J for application deployment • Use the JDeveloper Deployment Wizard to deploy to OC4J • Run a JSP application in OC4J
Overview Servlet/JSP/HTML Packaging Deployment Libraries, Packages
Overall Considerations for Deployment • Packaging and distributing involves: • Class files • Libraries • HTML files • How you set up the deployment environment depends on the server.
Deploying to a Web Server • Copy the files with the extensions .jsp, .html, .gif, to the document root directory of the Web server. • Archive class files in an archive (.JAR, .WAR) file. • Set the class path of the Web server to point to the archive files.
Deploying to OC4J • OC4J is a J2EE-compliant Web server, included with OracleAS 10g. To deploy to OC4J, perform the following: 1. Install OC4J. 2. Start the remote OC4J server by issuing the following from a command prompt:<oc4j directory> java –jar oc4j.jar 3. Create an OC4J Connection in JDeveloper. 4. Deploy the project by right-clicking webapp1.deploy and selecting “Deploy.”
Install OC4J 1. Open a command window. 2. Navigate to <ias_Home>/j2ee/home. 3. Run the following command: This command unpacks and installs OC4J. 4. Enter a password for the OC4J administrator account. % java -jar oc4j.jar -install
Start the OC4J Server • To start the OC4J server, use the following from the OC4J home directory, usually <iAS_Home>/j2ee/home • The server can be stopped by using the following command: % java -jar oc4j.jar % java -jar admin.jar ormi://localhost/ <admin> <password> -shutdown
Creating a Deployment Profile • Creating a deployment profile enables you to specify how the J2EE application is deployed:
Running Applications • To run the deployed application, call the following URL: • The context root can be customized in the deployment profile. http://hostname:8888/<workspacename>-<projectname>-context-root/main.jsp
Customizing Deployment • To change the names of directories used in deployment, double-click the .deploy file.
Summary • In this lesson, you should have learned how to: • Package the applications that you develop for deployment in a Web server • Create an OC4J connection in JDeveloper • Deploy your application to the Oracle9i Application Server
Practice 17-1: Overview • This practice covers the deployment of an ADF BC-based JSP application.