Developing Applications with Integrated WebLogic Server Developing Applications to Standalone Application Server

8-2 Java EE Developers Guide for Oracle Application Development Framework Oracle WebLogic Server provides a complete set of services for those modules and handles many details of application behavior automatically, without requiring programming. For information about which versions of Oracle WebLogic Server are compatible with JDeveloper, see the certification information website at http:www.oracle.comtechnetworkdeveloper-toolsjdevdocume ntationindex.html . ■ IBM WebSphere Application Server - Network Deployment ND ■ IBM WebSphere Application Server For information about which versions of IBM WebSphere are compatible, see the Oracle Fusion Middleware Third-Party Application Server Guide. Deploying a Fusion web application is slightly different from deploying a standard Java EE application. JSF applications that contain ADF Faces components have a few additional deployment requirements: ■ ADF Faces requires Sun’s JSF Reference Implementation 1.2 and MyFaces 1.0.8 or later. You can use JDeveloper to: ■ Run applications in Integrated WebLogic Server You can run and debug applications using Integrated WebLogic Server and then deploy to a remote a WebLogic Server or to WebSphere. Integrated IBM WebSphere Application Server is not supported for this release. ■ Deploy directly to the application server You can deploy applications directly to the application server by creating a connection to the server and choosing the name of that server as the deployment target. ■ Deploy to an archive file You can deploy applications indirectly by choosing an EAR file as the deployment target. The archive file can subsequently be installed on a target application server.

8.1.1 Developing Applications with Integrated WebLogic Server

If you are developing an application in JDeveloper and you want to run the application in Integrated WebLogic Server, you do not need to perform the tasks required for deploying directly to Oracle WebLogic Server or to an archive file. JDeveloper has a default connection to Integrated WebLogic Server and does not require any deployment profiles or descriptors. Integrated WebLogic Server has a preconfigured domain that includes the ADF libraries, as well as the -Djps.app.credential.overwrite.allowed=true setting, both of these are required to run Oracle ADF applications. You can run an application by choosing Run from the JDeveloper main menu.

8.1.2 Developing Applications to Standalone Application Server

Typically, for deployment to standalone application servers, you test and develop your application by running it in Integrated WebLogic Server. You can then test the application further by deploying it to testing Oracle WebLogic Server in development mode or to IBM WebSphere Application Server to more closely simulate the production environment. Deploying an ADF Java EE Application 8-3 In general, you use JDeveloper to prepare the application or project for deployment by: ■ Creating a connection to the target application server ■ Creating deployment profiles if necessary ■ Creating deployment descriptors if necessary, and that are specific to the application server ■ Updating application.xml and web.xml to be compatible with the application if required ■ Enabling the application for Real User Experience Insight RUEI in web.xml if desired ■ Migrating application-level security policy data to a domain-level security policy store ■ Configuring the Oracle Single Sign-On Oracle SSO service and properties in the domain jps-config.xml file when you intend the web application to run using Oracle SSO You must already have an installed application server. For Oracle WebLogic Server, you can use the Oracle 11g Installer or the Oracle Fusion Middleware 11g Application Developer Installer to install one. For other applications servers, follow the instructions in the applications server documentation to obtain and install the server. You also must prepare the application server for ADF application deployment. For more information, see the Preparing the Standalone Application Server for Deployment section of the Oracle Fusion Middleware Administrators Guide for Oracle Application Development Framework. ■ Installing the ADF runtime into the application server installation: – For WebLogic Server – If you installed Oracle WebLogic Server together with JDeveloper using the Oracle 11g Installer for JDeveloper, the ADF runtime should already be installed. – If the ADF runtime is not installed and you want to use Oracle Enterprise Manager to manage standalone ADF applications which are applications without Oracle SOA Suite or Oracle WebCenter components, use the Oracle Fusion Middleware 11g Application Developer Installer. This installer will install the necessary Oracle Enterprise Manager components into the Oracle WebLogic installation. – If the ADF runtime is not installed and you do not need to install Enterprise Manager, use the Oracle 11g Installer for JDeveloper. – For WebSphere Use the Oracle Fusion Middleware 11g Application Developer Installer to install the ADF runtime and the necessary Oracle Enterprise Manager components into the WebSphere installation. For information about installing WebSphere, see the Oracle Fusion Middleware Third-Party Application Server Guide. ■ Extending Oracle WebLogic Server domains or WebSphere Cells to be ADF-compatible using the ADF runtime 8-4 Java EE Developers Guide for Oracle Application Development Framework ■ For WebLogic, setting the Oracle WebLogic Server credential store overwrite setting as required -Djps.app.credential.overwrite.allowed=true setting ■ Creating a global JDBC data source for applications that require a connection to a data source After the application and application server have been prepared, you can: ■ Use JDeveloper to: – Directly deploy to the application server using the deployment profile and the application server connection. – Deploy to an EAR file using the deployment profile. For ADF applications, WAR and MAR files can be deployed only as part of an EAR file. ■ Use Enterprise Manager, scripts, or the application’s administration tool to deploy the EAR file created in JDeveloper. For more information, see the Oracle Fusion Middleware Administrators Guide for Oracle Application Development Framework.

8.2 Running a Java EE Application in Integrated WebLogic Server