Description Syntax Example getWLDM

3-24 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

3.5.2.3 Example

The following example loads the BigApp application located in the c:myapps directory, and stores the WLSTProgress object in a user-defined variable, in this case, progress. The following example distributes the c:myappsBigApp application to the myserver, oamserver1, and oamcluster servers, using the deployment plan defined at c:deploymentBigAppplan.xml. wls:offline progress=distributeApplicationc:myappsBigApp, c:deploymentBigAppplan.xml, myserver,oamserver1,oamcluster Distributing Application and Plan ... Successfully distributed the application. The previous example stores the WLSTProgress object in a user-defined variable, in this case, progress. You can then use the progress variable to determine if the distributeApplication command has completed. For example: wls:mydomainserverConfigServers progress.isCompleted 1 wls:mydomainserverConfigServers For more information about the WLSTProgress object, see WLSTProgress Object in Oracle WebLogic Scripting Tool.

3.5.3 getWLDM

Command Category: Deployment Commands Use with WLST: Online

3.5.3.1 Description

Returns the WebLogic DeploymentManager object. You can use the object methods to configure and deploy applications. WLST must be connected to an Administration Server to run this command. In the event of an error, the command returns a WLSTException.

3.5.3.2 Syntax

getWLDM

3.5.3.3 Example

The following example gets the WebLogicDeploymentManager object and stores it in the wldm variable. planPath Optional. Name of the deployment plan file. The filename can be absolute or relative to the application directory. This argument defaults to the planplan.xml file in the application directory, if one exists. targets Optional. Comma-separated list of targets. Each target may be qualified with a Java EE module name for example, module1server1 enabling you to deploy different modules of the application archive on different servers. This argument defaults to the server to which WLST is currently connected. options Optional. Comma-separated list of deployment options, specified as name-value pairs. For a list of valid deployment options, see the options argument description in Section 3.5.1, deploy . Argument Definition WLST Command and Variable Reference 3-25 wls:mydomainserverConfig wldm=getWLDM wls:mydomainserverConfig wldm.isConnected 1 wls:mydomainserverConfig

3.5.4 listApplications