In the Application Properties dialog, expand Run and choose MDS.

8-6 Java EE Developers Guide for Oracle Application Development Framework If your workspace has different working sets, only the metadata from the projects defined in the working set and their dependent projects will be included in the MAR. You can view and change a project’s dependencies by right-clicking the project in the Application Navigator, choosing Project Properties, and then selecting Dependencies. For instance, an application may have several projects but workingsetA is defined to be viewcontroller2 and viewcontroller5; and viewcontroller5 has a dependency on modelproject1. When you run or debug workingsetA, only the metadata for viewcontroller2, viewcontroller5, and modelproject1 will be included in the MAR for deployment. There should already be a MAR profile, either generated automatically by JDeveloper, or manually generated by a user. To deploy the MAR profile to Integrated WebLogic Server: 1. In the Application Navigator, right-click the application and choose Application Properties .

2. In the Application Properties dialog, expand Run and choose MDS.

3. In the Run MDS page: ■ Select the MAR profile from the MAR Profile dropdown list ■ Enter a directory path in Override Location if you want to customize the location of the simulated MDS repository. ■ Select the Directory Content option. You can chose to preserve the customizations across application runs or delete customizations before each run. Select the MAR profile from the MAR Profile dropdown list. Figure 8–1 shows Demometadata1 selected as the MAR profile. Figure 8–1 Setting the Run MDS options Deploying an ADF Java EE Application 8-7

8.3 Preparing the Application

Before you deploy an ADF application to an application server, you must perform prerequisite tasks within JDeveloper to prepare the application for deployment. The prerequisite tasks are: ■ Creating a connection to the target application server ■ Creating deployment profiles ■ Creating deployment descriptors ■ Migrating applicable security, credentials, identities, and policies ■ Replicating memory scopes in a clustered environment ■ Enabling the application for ADF MBeans optional

8.3.1 How to Create a Connection to the Target Application Server

You can deploy applications to the application server via JDeveloper application server connections. If your application involves customization using MDS, you should register your MDS repository with the application server: ■ WebLogic: register the MDS into the WebLogic Domain For more information about registering MDS in WebSphere, see the Oracle Fusion Middleware Administrators Guide. ■ WebSphere: register the MDS into the WebSphere Cell For more information about registering MDS in WebSphere, see the Oracle Fusion Middleware Third-Party Application Server Guide. To create a connection to an application server: 1. Launch the Application Server Connection wizard. You can: ■ In the Application Server Navigator, right-click Application Servers and choose New Application Server Connection. ■ In the New Gallery, expand General, select Connections and then Application Server Connection , and click OK. ■ In the Resource Palette, choose New New Connections Application Server .

2. In the Create AppServer Connection dialog Usage page, select Standalone Server.

3. In the Name and Type page, enter a connection name.

4. In the Connection Type dropdown list, choose:

■ WebLogic 10.3 to create a connection to Oracle WebLogic Server ■ WebSphere Server 7.x to create a connection to IBM WebSphere Server

5. Click Next.

6. On the Authentication page, enter a user name and password for the administrative user authorized to access the application server.

7. Click Next.