Redeploying Java EE Applications Using WLST

10-16 Oracle Fusion Middleware Administrators Guide ■ Configure application security: Click Go to Task in the Configure Application Security row. Depending on what type of security is used, different pages are displayed, as described in Section 10.8 . ■ Configure persistence: Click Go to Task in the Configure Persistence row to configure Java Persistent API JPA persistence units. ■ Configure ADF Connections: To modify the ADF connections, click Go to Task in the Configure ADF Connections row. The Configure ADF Connections page is displayed, showing the current connection information. To modify a connection type, click the Edit icon for a particular row. For example, you can modify the connection information for an external application. For more information about ADF connections, see Oracle Fusion Middleware Fusion Developers Guide for Oracle Application Development Framework. For more information about these options, see Section 10.8 . 16. Expand Deployment Plan. You can edit and save the deployment plan, if you choose. 17. Click Deploy. Fusion Middleware Control displays processing messages. 18. When the deployment is completed, click Close.

10.4.1.2 Deploying ADF Applications Using WLST or the Administration Console

You can deploy an ADF application using the WLST command line or the Oracle WebLogic Server Administration Console. Take the following steps: 1. If your application uses an MDS Repository, you must configure the application archive .ear file before you deploy your application. You must provide the repository information for the deploy target repository and any shared metadata repositories using the WLST getMDSArchiveConfig command. The repository specified must already be registered with the domain before deploying the application. The following example show how to use this command to get the MDSArchiveConfig and call the setAppMetadataRepository method to set the deploy target repository. Otherwise, your application will fail to start. wls:offline archive = getMDSArchiveConfigfromLocation=tmpApp1.ear wls:offline archive.setAppMetadataRepositoryrepository=AppRepos1, partition=partition1, type=DB, jndi=mds-jndi1 The operation places the changes in the MDS configuration portion of the adf-config.xml file in the archive file. 2. Save the changes to the original .ear file, using the following command: wls:offline archive.save 3. Deploy the application. To deploy an application when WLST is connected to the Administration Server, you use the WLST command deploy, using the following format: deployapp_name, path [,targets] [,stageMode] [,planPath] [,options] You must invoke the deploy command on the computer that hosts the Administration Server. Deploying Applications 10-17 For example, to deploy the application myApp: deploymyApp,scratchapplicationsmyApp, targets=myserver, timeout=120000 To deploy the application using the Oracle WebLogic Server Administration Console: 1. If you have not already done so, in the Change Center of the Administration Console, click Lock Edit. 2. In the left pane of the Administration Console, select Deployments. 3. In the right pane, click Install.

10.4.2 Undeploying Oracle ADF Applications

To undeploy an Oracle ADF application using Fusion Middleware Control: 1. From the navigation pane, expand Application Deployments, then the application to undeploy. The application home page is displayed. 2. From the Application Deployment menu, choose Application Deployment, then Undeploy. The confirmation page is displayed. 3. Click Undeploy. Processing messages are displayed. 4. When the operation completes, click Close. Alternatively, you can navigate to the domain, Managed Server, or cluster. Then, from the targets menu, choose Application Deployment, then Undeploy. In the Select Application page, select the application you want to undeploy. Note that when you undeploy an application, documents stored in the MDS partition are not deleted.

10.4.3 Redeploying Oracle ADF Applications

When you redeploy an application, if the application contains a Metadata Archive MAR, the contents of the MAR is imported to the applications metadata repository only if the MAR is changed. If the MAR is unchanged from previous deployment of the application, it is ignored. To redeploy an Oracle ADF application using Fusion Middleware Control: 1. From the navigation pane, expand the farm, then Application Deployments. 2. Select the application. See Also: ■ Deployment Tools in Oracle Fusion Middleware Deploying Applications to Oracle WebLogic Server for more information about using WLST to deploy applications ■ Oracle Fusion Middleware WebLogic Scripting Tool Command Reference See Also: The Help in the Oracle WebLogic Server Administration Console