Description Syntax Example writeDomain

WLST Command and Variable Reference 3-15

3.3.9.2 Syntax

readTemplatetemplateFileName

3.3.9.3 Example

The following example opens the medrec.jar domain template for WebLogic domain creation. wls:offline readTemplatec:OracleMiddlewarewlserver_10.3commontemplates domainswls_medrec.jar wls:offlinewls_medrec

3.3.10 updateDomain

Command Category: Control Commands Use with WLST: Offline

3.3.10.1 Description

Updates and saves the current WebLogic domain. The domain continues to be editable after you update and save it. In the event of an error, the command returns a WLSTException.

3.3.10.2 Syntax

updateDomain

3.3.10.3 Example

The following examples opens the medrec domain, performs some operations, and updates and saves the current domain: wls:offline readDomainc:OracleMiddlewareuser_projectsdomainsmedrec ... wls:offlinemedrec updateDomain

3.3.11 writeDomain

Command Category: Control Commands Use with WLST: Offline

3.3.11.1 Description

Writes the domain configuration information to the specified directory. Once you write the WebLogic domain to file system, you can continue to update the domain template object that exists in memory, and reissue the writeDomain command to store the domain configuration to a new or existing file. By default, when you write a WebLogic domain, the associated applications are written to WL_HOMEuser_projectsapplicationsdomainname, where WL_ HOME specifies the WebLogic Server home directory and domainname specifies the name of the WebLogic domain. This directory must be empty; otherwise, WLST displays an error. Argument Definition templateFileName Name of the JAR file corresponding to the domain template. 3-16 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference When you have finished using the domain template object in memory, close it using the closeTemplate command. If you want to edit the WebLogic domain that has been saved to disk, you can open it using the readDomain command. Before writing the domain, you must define a password for the default user, if it is not already defined. For example: cdSecuritybase_domainUserweblogic cmo.setPasswordwelcome1 In the event of an error, the command returns a WLSTException.

3.3.11.2 Syntax

writeDomaindomainDir

3.3.11.3 Example

The following example reads the medrec.jar domain templates, performs some operations, and writes the domain configuration information to the c:OracleMiddlewareuser_projectsdomainsmedrec directory. wls:offline readTemplatec:OracleMiddlewarewlserver_10.3commontemplates domainswls.jar ... wls:offlinebase_domain writeDomainc:OracleMiddlewareuser_ projectsdomainsbase_domain

3.3.12 writeTemplate