Presentation is loading. Please wait.

Presentation is loading. Please wait.

17 Copyright © 2004, Oracle. All rights reserved. Deploying an ADF Application.

Similar presentations


Presentation on theme: "17 Copyright © 2004, Oracle. All rights reserved. Deploying an ADF Application."— Presentation transcript:

1 17 Copyright © 2004, Oracle. All rights reserved. Deploying an ADF Application

2 17-2 Copyright © 2004, Oracle. All rights reserved. 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 17-3 Copyright © 2004, Oracle. All rights reserved. Overview Servlet/JSP/HTML Packaging Libraries, Packages Deployment

4 17-4 Copyright © 2004, Oracle. All rights reserved. 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 17-5 Copyright © 2004, Oracle. All rights reserved. J2EE Archive Format Archive TypeModule TypeSoftware Content Java Archive (JAR)J2EE client moduleJava Application components EJB JARJ2EE EJB moduleEnterprise JavaBeans (EJB) components Web Archive (WAR)J2EE Web moduleServlets and JavaServer Pages (JSP) components Enterprise Archive (EAR) Not applicableJ2EE application

6 17-6 Copyright © 2004, Oracle. All rights reserved. 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 17-7 Copyright © 2004, Oracle. All rights reserved. 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: java –jar oc4j.jar 3.Create an OC4J Connection in JDeveloper. 4.Deploy the project by right-clicking webapp1.deploy and selecting “Deploy.”

8 17-8 Copyright © 2004, Oracle. All rights reserved. Install OC4J 1.Open a command window. 2.Navigate to /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 17-9 Copyright © 2004, Oracle. All rights reserved. Start the OC4J Server To start the OC4J server, use the following from the OC4J home directory, usually /j2ee/home The server can be stopped by using the following command: % java -jar oc4j.jar % java -jar admin.jar ormi://localhost/ -shutdown

10 17-10 Copyright © 2004, Oracle. All rights reserved. Creating an OC4J Connection

11 17-11 Copyright © 2004, Oracle. All rights reserved. Creating an OC4J Connection

12 17-12 Copyright © 2004, Oracle. All rights reserved. Creating a Deployment Profile Creating a deployment profile enables you to specify how the J2EE application is deployed:

13 17-13 Copyright © 2004, Oracle. All rights reserved. Deploying to OC4J

14 17-14 Copyright © 2004, Oracle. All rights reserved. Running Applications To run the deployed application, call the following URL: The context root can be customized in the deployment profile. http://hostname:8888/ - - context-root/main.jsp

15 17-15 Copyright © 2004, Oracle. All rights reserved. Customizing Deployment To change the names of directories used in deployment, double-click the.deploy file.

16 17-16 Copyright © 2004, Oracle. All rights reserved. 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 Oracle9 i Application Server

17 17-17 Copyright © 2004, Oracle. All rights reserved. Practice 17-1: Overview This practice covers the deployment of an ADF BC- based JSP application.

18 17-18 Copyright © 2004, Oracle. All rights reserved. Practice 17-1

19 17-19 Copyright © 2004, Oracle. All rights reserved. Practice 17-1

20 17-20 Copyright © 2004, Oracle. All rights reserved.


Download ppt "17 Copyright © 2004, Oracle. All rights reserved. Deploying an ADF Application."

Similar presentations


Ads by Google