1 / 17

Deploying an ADF Application

Deploying an ADF Application. 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

Download Presentation

Deploying an ADF Application

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Deploying an ADF Application

  2. 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

  3. Overview Servlet/JSP/HTML Packaging Deployment Libraries, Packages

  4. Overall Considerations for Deployment • Packaging and distributing involves: • Class files • Libraries • HTML files • How you set up the deployment environment depends on the server.

  5. J2EE Archive Format

  6. 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.

  7. 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.”

  8. 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

  9. 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

  10. Creating an OC4J Connection

  11. Creating an OC4J Connection

  12. Creating a Deployment Profile • Creating a deployment profile enables you to specify how the J2EE application is deployed:

  13. Deploying to OC4J

  14. 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

  15. Customizing Deployment • To change the names of directories used in deployment, double-click the .deploy file.

  16. 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

  17. Practice 17-1: Overview • This practice covers the deployment of an ADF BC-based JSP application.

More Related