WebLogic Scripting Tool
This section describes the contents and organization of this guide—WebLogic Scripting Tool.
This document describes the BEA WebLogic Scripting Tool (WLST). It explains how you use the WLST command-line scripting interface to configure, manage, and persist changes to WebLogic Server® instances and domains, and monitor and manage server runtime events.
This document is written for WebLogic Server administrators and operators who deploy J2EE applications using the Java 2 Platform, Enterprise Edition (J2EE) from Sun Microsystems. It is assumed that readers are familiar with Web technologies and the operating system and platform where WebLogic Server is installed.
This document is organized as follows:
The following sections describe the WLST online and offline sample scripts that you can run or use as templates for creating additional scripts. For information about running scripts, see Running Scripts.
The WLST online sample scripts demonstrate how to perform administrative tasks and initiate WebLogic Server configuration changes while connected to a running server. WLST online scripts are located in the following directory: SAMPLES_HOME
\server\examples\src\examples\wlst\online
, where SAMPLES_HOME
refers to the main examples directory of your WebLogic Server installation, such as c:\
beahome
\weblogic91\samples
.
Table 1-1 summarizes WLST online sample scripts.
The WLST offline sample scripts demonstrate how to create domains using the domain templates that are installed with the software. The WLST offline scripts are located in the following directory: WL_HOME
\common\templates\scripts\wlst
, where WL_HOME
refers to the top-level installation directory for WebLogic Server.
Table 1-2 summarizes WLST offline sample scripts.
Creates a simple WebLogic domain demonstrating how to open a domain template, create and edit configuration objects, and write the domain configuration information to the specified directory. The sample consists of a single server, representing a typical development environment. This type of configuration is not recommended for production environments. |
|
Creates a single-cluster domain, creating three Managed Servers and assigning them to a cluster. The script uses the Basic WebLogic Server Domain template and extends it using the Avitek Medical Records Sample extension template. |
|
Demonstrates two methods for creating distributed queues. The script uses the Basic WebLogic Server Domain template and extends it using the Avitek Medical Records Sample. |
|
Creates a domain that defines resources similar to those used in the Avitek MedRec sample. This example does not recreate the MedRec example in its entirety, nor does it deploy any sample applications. This example demonstrates steps similar to those shown in the WLST online script described in Creating a Sample Domain: Main Steps, but uses WLST offline. |
In addition, BEA provides sample scripts to configure WebLogic domain resources using WLST offline and online on the dev2dev Web site. For more information, see the wlst Project Home at https://wlst.projects.dev2dev.bea.com
.