Controlling a JDBC Data Source Using Fusion Middleware Control

10-10 Oracle Fusion Middleware Administrators Guide Fusion Middleware Control updates the relevant files and repackages the .ear file. 16. Click Deploy. Fusion Middleware Control displays processing messages. 17. When the deployment is completed, click Close. To deploy an application to multiple servers at the same time, navigate to the domain. Then, from the WebLogic Domain menu, select Application Deployment, then Deploy. The deployment wizard displays a page where you can select the servers. To deploy an application to a cluster, select the cluster. Then, from the Cluster menu, select Application Deployment, then Deploy.

10.3.1.2 Deploying Java EE Applications Using WLST

You can deploy an application using the WLST command line. To deploy a Java EE 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. For example, to deploy the application mainWebApp: deploymyApp,scratchapplicationswlserver_ 10.3samplesserverexamplesbuildmainWebApp You can also deploy the application using the weblogic.deployer, as shown in the following example: java weblogic.Deployer -adminurl http:localhost:7001 -user username -password password -deploy -name myApp c:\localfiles\mainWebApp -plan c:\localfiles\productionEnvPlan.xml

10.3.2 Undeploying Java EE Applications

You can undeploy an application or a specific version of an application from a WebLogic Server Managed Server instance or a cluster. This section describes how to undeploy an application from a Managed Server. If an application has been deployed to multiple servers, when you undeploy it using Fusion Middleware Control, the application is undeployed from all the servers.

10.3.2.1 Undeploying Java EE Applications Using Fusion Middleware Control

To undeploy a Java EE application from a Managed Server using Fusion Middleware Control: 1. From the navigation pane, expand Application Deployments. 2. Select the application to undeploy. 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 Deploying Applications 10-11 The application home page is displayed. 3. From the Application Deployment menu, choose Application Deployment, then Undeploy. The confirmation page is displayed. 4. Click Undeploy. Processing messages are displayed. 5. 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.

10.3.2.2 Undeploying Java EE Applications Using WLST

You can undeploy an application using the WLST command line. To undeploy a Java EE application when WLST is connected to the Administration Server, you use the WLST command undeploy, using the following format: undeployapp_name, path [,targets] [,options] You must invoke the undeploy command on the computer that hosts the Administration Server. For example, to undeploy the application businessApp from all target servers and specify that WLST wait 60,000 ms for the process to complete: wls:mydomainserverConfig undeploybusinessApp, timeout=60000

10.3.3 Redeploying Java EE Applications

You can redeploy a new version of an updated application, redeploy the same version, or redeploy a non-versioned application. You can redeploy an application to a cluster or a Managed Server. This section describes how to redeploy an application to a Managed Server.

10.3.3.1 Redeploying Java EE Applications Using Fusion Middleware Control

To redeploy a Java EE application to a Managed Server using Fusion Middleware Control: 1. From the navigation pane, expand the farm, then Application Deployments. 2. Select the application. The application home page is displayed. 3. From the Application Deployment menu, choose Application Deployment, and then Redeploy. The Select Application page is displayed. 4. Click Next. 5. In the Archive or Exploded Directory section, you can select one of the following: ■ Archive is on the machine where this browser is running. Enter the location of the archive or click Browse to find the archive file.