Escolar Documentos
Profissional Documentos
Cultura Documentos
(Browser Based
Utility)
WLST
(Command Line
Utility)
JMX
(Mbe
ans)
What is JMX ?
JMX Java Management Extension.
What is JMX ?
JMX Java Management Extension.
It provides a bunch of Mbeans ( Management
Beans).
What is JMX ?
JMX Java Management Extension.
It provides a bunch of Mbeans ( Management
Beans).
Mbeans can be used to configure/query any
property of the weblogic.
What is JMX ?
JMX Java Management Extension.
It provides a bunch of Mbeans ( Management
Beans).
Mbeans can be used to configure/query any
property of the weblogic.
Admin Console application connects to JMX
API to manage weblogic.
What is JMX ?
JMX Java Management Extension.
It provides a bunch of Mbeans ( Management
Beans).
Mbeans can be used to configure/query any
property of the weblogic.
Admin Console application connects to JMX
API to manage weblogic.
WLST also connects to the same JMX.
Administration Console
Browser-based tool for configuring and monitoring domains,
deploying applications, and controlling servers
10
Configuration Wizard
Administration Console
Browser-based tool for configuring and monitoring domains,
deploying applications, and controlling servers
11
Configuration Wizard
Administration Console
Browser-based tool for configuring and monitoring domains,
deploying applications, and controlling servers
weblogic.Admin
Deprecated command line tool for configuring a domain
Recommend using WLST instead
12
Configuration Wizard
Administration Console
Browser-based tool for configuring and monitoring domains,
deploying applications, and controlling servers
weblogic.Admin
Deprecated command line tool for configuring a domain
Recommend using WLST instead
weblogic.Deployer
Command line tool for deploying applications
19
20
21
22
Script
text file with a .py file extension
executed using Jython commands for running scripts
invoke a sequence of WLST commands without requiring your input
23
Script
text file with a .py file extension
executed using Jython commands for running scripts
invoke a sequence of WLST commands without requiring your input
Embedded
instantiate the WLST interpreter in your Java code
execute WLST commands from a Java program
Online
Can Do:
Create/modify templates
Create domains
Extend domains
Access and modify the
configuration for an offline
domain
Cant Do:
View runtime performance
data
Modify security data
Can Do:
Change configuration
View runtime data
Deploy applications
Start and stop servers
Cant Do:
Create a domain (must be
offline mode)
27
domainConfig
serverConfig
domainRuntime
serverRuntime
edit
jndi
custom
28
cd(), ls(),pwd()
29
domainConfig()
serverConfig()
domainRuntime()
serverRuntime()
edit()
jndi()
custom()
Syntax
1.
wls:/wl_server/domainConfig> edit()
2.
wls:/wl_server/edit> startEdit()
3.
Make changes
4.
5.
Activate/distribute, release
lock
31
Example:
wls:/mydomain/edit> cmo.setAdministrationPort(9092)
(This example changes the Administration Port in the Domain MBean)
33
You query the progress object to get the status; (pull, not push)
35
Example 2: STARTING/STOPPING
SERVERS USING WLST
You can also manage server lifecycle through WLST without directly
using Node Manager.
The following WLST lifecycle commands are available:
startServer - Start the Administration Server. (Online or Offline)
start - Start a Managed Server instance or a cluster using Node
Manager.
suspend - Suspend a running server.
resume - Resume a server instance that is suspended or in ADMIN
state.
37
Customizing WLST
Add custom commands by:
http://e-docs.bea.com/wls/docs100/config_scripting/using_WLST.html#wp1093407
38
java -Dpython.cachedir="c:\demo\wlst_cache"
weblogic.WLST
39
Scripts Repository
Please refer to the repository of scripts
attached with the content docs.
41
WLST Resources
Guide:
More
http://e-docs.bea.com/wls/docs100/config_scripting/index.html
Template Builder:
http://e-docs.bea.com/common/docs100/tempbuild/index.html
wlserver_103\common\templates\scripts\wlst
wlserver_103\common\wlst\lib
samples\server\examples\src\examples\wlst\online
samples\server\examples\src\examples\diagnostics\wldfprofiles\src
samples\server\examples\src\examples\jdbc\multidatasource