Professional Documents
Culture Documents
WLST
WLST
wlconfig / wldeploy
Ant Task for making changes in WLS configuration.
weblogic.Deployer
Deploying Applications.
Script Mode
java weblogic.WLST scriptname.py Apply same configuration settings, iteratively across multiple nodes of a topology. Schedule scripts to run at various times for monitoring purposes. Automate Repetitive and Complex Tasks.
Embedded Mode
From Java Code.
Import Statement
Connect To Server.
clusters = "cluster1","cluster2" ms1 = {'managed1':7701,'managed2':7702,'managed3':7703, 'managed4':7704, 'managed5':7705} ms2 = {'managed6':7706,'managed7':7707,'managed8':7708, 'managed9':7709, 'managed10':7710} clustHM = HashMap() edit() startEdit() for c in clusters: print 'creating cluster '+c clu = create(c,'Cluster') clustHM.put(c,clu)
Create Cluster
Create Servers
wls:/mydomain/serverConfig> cmo [MBeanServerInvocationHandler]mydomain:Name=mydo main,Type=Domain wls:/mydomain/serverConfig> cd('Servers') wls:/mydomain/serverConfig/Servers> cmo [MBeanServerInvocationHandler]mydomain:Name=mydo main,Type=Domain wls:/mydomain/serverConfig/Servers> cd('myserver') wls:/mydomain/serverConfig/Servers/myserver> cmo [MBeanServerInvocationHandler]mydomain:Name=myser ver,Type=Server