Monday, October 5, 2020

Introduction to WebLogic Scripting Tool

The WebLogic Scripting Tool (WLST) is a command-line scripting interface that the weblogic administrators and operators use to monitor and manage WebLogic Server instances and domains.

It can replace configuration wizard, template builder, command line deployment: weblogic.Deployer, admin console.

WLST is a tool which is based on the Python programming language and uses the Jython feature to act as an administrator interface of the WebLogic Server.

WLST modes

WLST can be used in several modes; we can however group them in the following main three categories:

Offline: Mostly used to create new domains like the configuration domain wizard

Online: Used to perform online administration tasks just like the Administration console

Embedded: Invoked directly from Java code

Sample HelloWorld Program:

import sys

if len(sys.argv) > 1:

    print sys.argv[1]+" from the console" 

else:

    print "Hello World from the script

From Shell:

java weblogic.WLST HelloWorld.py "Hello World"



No comments:

Post a Comment

ES12 new Features