SlideShare a Scribd company logo
Maarten Smeets, 06-12-2015
WebLogic Scripting Tool made Cool!
Introduction
• About AMIS
– Located in the Netherlands
– Oracle Award winning partner
• Maarten Smeets
– Senior Oracle Integration Consultant
– Experience with Oracle SOA Suite since 2007
– Well certified (SOA, BPM, Java, SQL,
PL/SQL among others)
– Author of 100+ blog articles (http://javaoraclesoa.blogspot.com)
– Working @ AMIS since 2014
@MaartenSmeetsNL
https://nl.linkedin.com/in/smeetsm
Agenda
• Introduction
• Using Java within WLST
• Using WLST as Jython module
• A look into the future
• Summary
Agenda
• Introduction
• Using Java within WLST
• Using WLST as Jython module
• A look into the future
• Summary
Introduction
WebLogic Scripting Tool
http://www.oracle.com/technetwork/middleware/weblogic/overview/weblogic-server-12-1-3-datasheet-2227036.pdf
Introduction
Based on popular languages
• WLST is based on Jython. Jython is an implementation of the Python
language for the Java platform
Python ranks as 5th most
popular programming
languageJava ranks as most popular
programming language
TIOBE index 2015
Introduction
3 interaction modes
Interactive Script Embedded
Introduction
Mbean trees
• domainConfig
– configuration hierarchy of the entire domain; represents the configuration MBeans in
RuntimeMBeanServer
– read only
• serverConfig
– configuration hierarchy (configuration MBeans) of the server your are connected to
– read only
• domainRuntime
– hierarchy of runtime MBeans for the entire domain
– read only
• serverRuntime
– hierarchy of runtime MBeans for the server you are connected to
– read only
• edit
– writable domain configuration with pending changes; represents the configuration MBeans in the
EditMBeanServer
• jndi
– read-only JNDI tree for the server you are connected to
• custom
– list of custom MBeans
– can be hierarchical/grouped if MBeans use namespaces appropriately
http://www.slideshare.net/jambay/weblogic-scripting-tool-overview
9
Introduction
What can you do with WLST?
Configuration DeploymentManagement Monitoring
Introduction
WLST Configuration
http://stackoverflow.com/questions/18105396/wlst-command-to-update-jdbc-datasource-url
Introduction
WLST Management
http://wlstbyexamples.blogspot.nl/2009/10/dynamic-domain-creation-with-wlst.html#.VmGRnnYvdD8
Introduction
WLST Deployment
Introduction
WLST Monitoring
http://wlstbyexamples.blogspot.nl/2010/02/server-state-using-wlst.html#.VmGYinYvdD8
Agenda
• Introduction
• Using Java within WLST
• Using WLST as Jython module
• A look into the future
• Summary
Using Java within WLST
Why?
• Extend WLST with Java API’s
– Unleash the power of Java API’s on your WLST scripts!
• Rewrite Java as WLST
– WLST can easily be executed by operations on an application server
Using Java with WLST
Some differences
Import ArrayMethodInstance
Using Java with WLST
Imports
Java WLST
import java.util.Hashtable; from java.util import Hashtable
Using Java with WLST
Creating instances
Java WLST
Hashtable jndiProps = new Hashtable(); jndiProps = Hashtable()
Types are determined by inference
Using Java with WLST
Methods
Java WLST
private String
getDNToUndeploy(CompositeData[]
compositeData) throws Exception
def getDNToUndeploy(compositeData):
Python has no true private methods
Exceptions are determined by inference
Using Java with WLST
Arrays
Java WLST
int[] intArray = { 1, 2, 3};
from jarray import array
intArray = array ([1, 2, 3],’i’)
Java primitives arrays can be created
in Jython with the jarray module
Using Java with WLST
Example: Java
http://javaoraclesoa.blogspot.co.uk/2015/05/unleash-power-of-java-apis-on-your-wlst.html
Using Java with WLST
Example: WLST
Agenda
• Introduction
• Using Java with WLST
• Using WLST as Jython module
• A look into the future
• Summary
Using WLST as Jython module
Why?
• WLST uses Jython 2.2.1 (2007)
• Current version of Jython is 2.7 (2015)
• Jython 2.7 has many nice things, for example;
– Package management: pip install logging
– XML API’s: ElementTree
– Easy multithreading: multiprocessing
– Easy argument parsing: argparse
Using WLST as Jython module
Argument parsing in WLST
import getopt
url = None
user = None
password = None
opts, args =
getopt.getopt(sys.argv[1:], "e:u:p:")
for opt, arg in opts:
print opt, arg
if opt in "-e":
env = arg
if opt in "-p":
password = arg
if opt in "-u":
user = arg
print "URL: "+url
print "Username: "+username
print "Password: "+password
import sys;
print "URL: "+sys.argv[1]
print "Username: "+sys.argv[2]
print "Password: "+sys.argv[3]
Manual argument checking
and processing!
Using WLST as Jython module
Argument parsing in Jython 2.7
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("username", type=string, help="username")
parser.add_argument("password", type=string, help="password")
parser.add_argument("url", type=string, help="url")
args = parser.parse_args()
print "URL: "+args.url
print "Username: "+args.username
print "Password: "+args.password
Type checking
Optional/required arguments
Help generation
Minimal coding
Using WLST as Jython module
Module installation
WLST (Jython 2.2.1) Jython 2.7
Find and download a
Jython 2.2.1 compatible module
Copy the module to
WL_HOME/common/wlst/modules
pip install <module name>
Using WLST as Jython module
How?
• You need the classpath
• You need the Jython module path
• You need a WLST Jython module
Using WLST as Jython module
How?
• You need the classpath
• You need the Jython module path
• You need a WLST Jython module
Using WLST as Jython module
Classpath
• Start wlst.sh / wlst.cmd
– import os
– print os.environ[‘CLASSPATH’]
• Add the wlfullclient.jar and <WLS_HOME>/oracle_common/modules/*
• Done 
Using WLST as Jython module
How?
• You need the classpath
• You need the Jython module path
• You need a WLST Jython module
Using WLST as Jython module
Jython module path
• Start wlst.sh or wlst.cmd
– print sys.path
• Done 
Using WLST as Jython module
How?
• You need the classpath
• You need the Jython module path
• You need a WLST Jython module
Using WLST as Jython module
• Start wlst.sh or wlst.cmd
– writeIniFile("wl.py")
• Replace ‘origPrompt = sys.ps1’ with ‘origPrompt = ">>>“’
• Done 
Using WLST as Jython module
• Create a startjython.sh script to set the CLASSPATH and JYTHONPATH
• Ready to roll!
import wl
wl.connect("weblogic","Welcome01", "t3://localhost:7101")
mbServers= wl.getMBean("Servers")
servers= mbServers.getServers()
for server in servers :
print( "Server Name: " + server.getName() )
print( "Done." )
Agenda
• Introduction
• Using Java with WLST
• Using WLST as Jython module
• A look into the future
• Summary
A look into the future
Cloud Application Foundation
A look into the future
New WLST features in 12c
• WLST 12c introduces Jline integration
– use up and down arrows to browse command history
• WebLogic Server 12c provides a Maven plugin to allow execution of
WLST scripts in for example Continuous Delivery pipelines
– https://docs.oracle.com/cd/E24329_01/web.1211/e24368/maven.htm#WLPRG700
• SOA Suite 12.2.1 instance patching only supported with WLST (not Ant or
Maven)
• WLST 12.2.1 offline mode does not support partitions (yet?) . WLST
12.2.1 online does support partitions (multitenancy)
A look into the future
However…
• wlfullclient.jar is deprecated since 12.2.1 (related to multitenancy?)
– http://docs.oracle.com/middleware/1221/wls/NOTES/whatsnew.htm#NOTES155
• RESTful Management Services replacing WLST in the cloud?
– http://docs.oracle.com/middleware/1221/wls/NOTES/whatsnew.htm#NOTES353
• WLST has not seen a new Jython version since 11g
Agenda
• Introduction
• Using Java with WLST
• Using WLST as Jython module
• A look into the future
• Summary
Summary
• WebLogic Scripting Tool is based on popular programming languages
• WebLogic Scripting Tool has many uses
• WebLogic Scripting Tool is very flexible
– can be extended with Java API’s
– can be used as Jython module
• WebLogic Server is changing because of Oracle Cloud requirements
Questions
@MaartenSmeetsNL
https://nl.linkedin.com/in/smeetsm Download the presentation at http://bit.ly/1jH5ywP
WebLogic Scripting Tool made Cool!

More Related Content

What's hot

WSO2 Enterprise Integrator 101
WSO2 Enterprise Integrator 101WSO2 Enterprise Integrator 101
WSO2 Enterprise Integrator 101
WSO2
 
Spring Boot & Actuators
Spring Boot & ActuatorsSpring Boot & Actuators
Spring Boot & Actuators
VMware Tanzu
 
Webpack Introduction
Webpack IntroductionWebpack Introduction
Webpack Introduction
Anjali Chawla
 
Flywaydb
FlywaydbFlywaydb
Java Spring
Java SpringJava Spring
Java Spring
AathikaJava
 
Introdução a jsf
Introdução a jsfIntrodução a jsf
Introdução a jsf
Jorge William Rodrigues
 
WebSphere Application Server
WebSphere Application ServerWebSphere Application Server
WebSphere Application Server
Nishant Mevawala
 
Script logic primer-bpc_nw
Script logic primer-bpc_nwScript logic primer-bpc_nw
Script logic primer-bpc_nw
Erptimal RA
 
Learning React - I
Learning React - ILearning React - I
Learning React - I
Mitch Chen
 
Introduction to Apache Synapse
Introduction to Apache SynapseIntroduction to Apache Synapse
Introduction to Apache Synapse
Hiranya Jayathilaka
 
Analysis for office training
Analysis for office   trainingAnalysis for office   training
Analysis for office training
Kibrom Gebrehiwot
 
SAP Basis CCMS
SAP Basis CCMSSAP Basis CCMS
SAP Basis CCMS
Vineeth Ponugoti
 
Lithuanian business culture guide - Learn about Lithuania
Lithuanian business culture guide - Learn about LithuaniaLithuanian business culture guide - Learn about Lithuania
Lithuanian business culture guide - Learn about Lithuania
Salford Business School
 
개발자 지향 WAS : IBM WebSphere Liberty Server
개발자 지향 WAS : IBM WebSphere Liberty Server개발자 지향 WAS : IBM WebSphere Liberty Server
개발자 지향 WAS : IBM WebSphere Liberty Server
JungWoon Lee
 
Oracle Enterprise Manager SOA Management Pack
Oracle Enterprise Manager SOA Management PackOracle Enterprise Manager SOA Management Pack
Oracle Enterprise Manager SOA Management Pack
Fumiko Yamashita
 
Anatomia do JSF, JavaServer Faces
Anatomia do JSF, JavaServer FacesAnatomia do JSF, JavaServer Faces
Anatomia do JSF, JavaServer Faces
Rafael Ponte
 
Maven
MavenMaven
10 Best SharePoint Features You’ve Never Used (But Should)
10 Best SharePoint Features You’ve Never Used (But Should)10 Best SharePoint Features You’ve Never Used (But Should)
10 Best SharePoint Features You’ve Never Used (But Should)
Christian Buckley
 
What's new on SAP HANA Workload Management
What's new on SAP HANA Workload ManagementWhat's new on SAP HANA Workload Management
What's new on SAP HANA Workload Management
SAP Technology
 
ibm websphere admin training | websphere admin course | ibm websphere adminis...
ibm websphere admin training | websphere admin course | ibm websphere adminis...ibm websphere admin training | websphere admin course | ibm websphere adminis...
ibm websphere admin training | websphere admin course | ibm websphere adminis...
Nancy Thomas
 

What's hot (20)

WSO2 Enterprise Integrator 101
WSO2 Enterprise Integrator 101WSO2 Enterprise Integrator 101
WSO2 Enterprise Integrator 101
 
Spring Boot & Actuators
Spring Boot & ActuatorsSpring Boot & Actuators
Spring Boot & Actuators
 
Webpack Introduction
Webpack IntroductionWebpack Introduction
Webpack Introduction
 
Flywaydb
FlywaydbFlywaydb
Flywaydb
 
Java Spring
Java SpringJava Spring
Java Spring
 
Introdução a jsf
Introdução a jsfIntrodução a jsf
Introdução a jsf
 
WebSphere Application Server
WebSphere Application ServerWebSphere Application Server
WebSphere Application Server
 
Script logic primer-bpc_nw
Script logic primer-bpc_nwScript logic primer-bpc_nw
Script logic primer-bpc_nw
 
Learning React - I
Learning React - ILearning React - I
Learning React - I
 
Introduction to Apache Synapse
Introduction to Apache SynapseIntroduction to Apache Synapse
Introduction to Apache Synapse
 
Analysis for office training
Analysis for office   trainingAnalysis for office   training
Analysis for office training
 
SAP Basis CCMS
SAP Basis CCMSSAP Basis CCMS
SAP Basis CCMS
 
Lithuanian business culture guide - Learn about Lithuania
Lithuanian business culture guide - Learn about LithuaniaLithuanian business culture guide - Learn about Lithuania
Lithuanian business culture guide - Learn about Lithuania
 
개발자 지향 WAS : IBM WebSphere Liberty Server
개발자 지향 WAS : IBM WebSphere Liberty Server개발자 지향 WAS : IBM WebSphere Liberty Server
개발자 지향 WAS : IBM WebSphere Liberty Server
 
Oracle Enterprise Manager SOA Management Pack
Oracle Enterprise Manager SOA Management PackOracle Enterprise Manager SOA Management Pack
Oracle Enterprise Manager SOA Management Pack
 
Anatomia do JSF, JavaServer Faces
Anatomia do JSF, JavaServer FacesAnatomia do JSF, JavaServer Faces
Anatomia do JSF, JavaServer Faces
 
Maven
MavenMaven
Maven
 
10 Best SharePoint Features You’ve Never Used (But Should)
10 Best SharePoint Features You’ve Never Used (But Should)10 Best SharePoint Features You’ve Never Used (But Should)
10 Best SharePoint Features You’ve Never Used (But Should)
 
What's new on SAP HANA Workload Management
What's new on SAP HANA Workload ManagementWhat's new on SAP HANA Workload Management
What's new on SAP HANA Workload Management
 
ibm websphere admin training | websphere admin course | ibm websphere adminis...
ibm websphere admin training | websphere admin course | ibm websphere adminis...ibm websphere admin training | websphere admin course | ibm websphere adminis...
ibm websphere admin training | websphere admin course | ibm websphere adminis...
 

Viewers also liked

Weblogic configuration
Weblogic configurationWeblogic configuration
Weblogic configuration
Aditya Bhuyan
 
What You Should Know About WebLogic Server 12c (12.2.1.2) #oow2015 #otntour2...
What You Should Know About WebLogic Server 12c (12.2.1.2)  #oow2015 #otntour2...What You Should Know About WebLogic Server 12c (12.2.1.2)  #oow2015 #otntour2...
What You Should Know About WebLogic Server 12c (12.2.1.2) #oow2015 #otntour2...
Frank Munz
 
Weblogic application server
Weblogic application serverWeblogic application server
Weblogic application server
Anuj Tomar
 
Easy oracle & weblogic provisioning and deployment
Easy oracle & weblogic provisioning and deploymentEasy oracle & weblogic provisioning and deployment
Easy oracle & weblogic provisioning and deployment
Bert Hajee
 
Oracle WebLogic 12.2.1.1 Kurulum, Domain Oluşturma, Upgrade Notları
Oracle WebLogic 12.2.1.1 Kurulum, Domain Oluşturma, Upgrade NotlarıOracle WebLogic 12.2.1.1 Kurulum, Domain Oluşturma, Upgrade Notları
Oracle WebLogic 12.2.1.1 Kurulum, Domain Oluşturma, Upgrade Notları
M. Fevzi Korkutata
 
Dynamicly Scale Weblogic in the private Cloud clusters
Dynamicly Scale Weblogic in the private Cloud clusters   Dynamicly Scale Weblogic in the private Cloud clusters
Dynamicly Scale Weblogic in the private Cloud clusters
Getting value from IoT, Integration and Data Analytics
 
REST mit ADF
REST mit ADFREST mit ADF
REST mit ADF
Andreas Koop
 
WebLogic authentication debugging
WebLogic authentication debuggingWebLogic authentication debugging
WebLogic authentication debugging
Maarten Smeets
 
Learn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c AdministrationLearn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c Administration
Revelation Technologies
 
What should I do now?! JCS for WebLogic Admins
What should I do now?! JCS for WebLogic AdminsWhat should I do now?! JCS for WebLogic Admins
What should I do now?! JCS for WebLogic Admins
Simon Haslam
 
AMIS Beyond the Horizon - High density deployments using weblogic multitenancy
AMIS Beyond the Horizon - High density deployments using weblogic multitenancyAMIS Beyond the Horizon - High density deployments using weblogic multitenancy
AMIS Beyond the Horizon - High density deployments using weblogic multitenancy
Jaap Poot
 
Creativity into Action
Creativity into ActionCreativity into Action
Creativity into Action
Dustin Maherg, SCPM, PMP, CMRP
 
Cuoc song tuoi dep
Cuoc song tuoi depCuoc song tuoi dep
Cuoc song tuoi dep
nguyenkhoaquynhanh123
 
Tik bab 3 kelas 9
Tik bab 3 kelas 9Tik bab 3 kelas 9
Tik bab 3 kelas 9
aniuzta
 
Technology Meet Humanity - Opus Interactive
Technology Meet Humanity - Opus Interactive Technology Meet Humanity - Opus Interactive
Technology Meet Humanity - Opus Interactive
Jacklin Berry
 
Gemma Flannery 2015 CV September
Gemma Flannery 2015 CV SeptemberGemma Flannery 2015 CV September
Gemma Flannery 2015 CV September
Gemma Flannery
 
Sunquchakuqkunas (INDIVIDUAL)
Sunquchakuqkunas (INDIVIDUAL)Sunquchakuqkunas (INDIVIDUAL)
Sunquchakuqkunas (INDIVIDUAL)
RildaSO
 
Youtube
YoutubeYoutube

Viewers also liked (18)

Weblogic configuration
Weblogic configurationWeblogic configuration
Weblogic configuration
 
What You Should Know About WebLogic Server 12c (12.2.1.2) #oow2015 #otntour2...
What You Should Know About WebLogic Server 12c (12.2.1.2)  #oow2015 #otntour2...What You Should Know About WebLogic Server 12c (12.2.1.2)  #oow2015 #otntour2...
What You Should Know About WebLogic Server 12c (12.2.1.2) #oow2015 #otntour2...
 
Weblogic application server
Weblogic application serverWeblogic application server
Weblogic application server
 
Easy oracle & weblogic provisioning and deployment
Easy oracle & weblogic provisioning and deploymentEasy oracle & weblogic provisioning and deployment
Easy oracle & weblogic provisioning and deployment
 
Oracle WebLogic 12.2.1.1 Kurulum, Domain Oluşturma, Upgrade Notları
Oracle WebLogic 12.2.1.1 Kurulum, Domain Oluşturma, Upgrade NotlarıOracle WebLogic 12.2.1.1 Kurulum, Domain Oluşturma, Upgrade Notları
Oracle WebLogic 12.2.1.1 Kurulum, Domain Oluşturma, Upgrade Notları
 
Dynamicly Scale Weblogic in the private Cloud clusters
Dynamicly Scale Weblogic in the private Cloud clusters   Dynamicly Scale Weblogic in the private Cloud clusters
Dynamicly Scale Weblogic in the private Cloud clusters
 
REST mit ADF
REST mit ADFREST mit ADF
REST mit ADF
 
WebLogic authentication debugging
WebLogic authentication debuggingWebLogic authentication debugging
WebLogic authentication debugging
 
Learn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c AdministrationLearn Oracle WebLogic Server 12c Administration
Learn Oracle WebLogic Server 12c Administration
 
What should I do now?! JCS for WebLogic Admins
What should I do now?! JCS for WebLogic AdminsWhat should I do now?! JCS for WebLogic Admins
What should I do now?! JCS for WebLogic Admins
 
AMIS Beyond the Horizon - High density deployments using weblogic multitenancy
AMIS Beyond the Horizon - High density deployments using weblogic multitenancyAMIS Beyond the Horizon - High density deployments using weblogic multitenancy
AMIS Beyond the Horizon - High density deployments using weblogic multitenancy
 
Creativity into Action
Creativity into ActionCreativity into Action
Creativity into Action
 
Cuoc song tuoi dep
Cuoc song tuoi depCuoc song tuoi dep
Cuoc song tuoi dep
 
Tik bab 3 kelas 9
Tik bab 3 kelas 9Tik bab 3 kelas 9
Tik bab 3 kelas 9
 
Technology Meet Humanity - Opus Interactive
Technology Meet Humanity - Opus Interactive Technology Meet Humanity - Opus Interactive
Technology Meet Humanity - Opus Interactive
 
Gemma Flannery 2015 CV September
Gemma Flannery 2015 CV SeptemberGemma Flannery 2015 CV September
Gemma Flannery 2015 CV September
 
Sunquchakuqkunas (INDIVIDUAL)
Sunquchakuqkunas (INDIVIDUAL)Sunquchakuqkunas (INDIVIDUAL)
Sunquchakuqkunas (INDIVIDUAL)
 
Youtube
YoutubeYoutube
Youtube
 

Similar to WebLogic Scripting Tool made Cool!

Java on Windows Azure
Java on Windows AzureJava on Windows Azure
Java on Windows Azure
David Chou
 
Introduction to Apache CloudStack by David Nalley
Introduction to Apache CloudStack by David NalleyIntroduction to Apache CloudStack by David Nalley
Introduction to Apache CloudStack by David Nalley
buildacloud
 
Weblogic scripting LVOUG meetup #11
Weblogic scripting LVOUG meetup #11Weblogic scripting LVOUG meetup #11
Weblogic scripting LVOUG meetup #11
Andrejs Vorobjovs
 
Knolx session
Knolx sessionKnolx session
Knolx session
Knoldus Inc.
 
AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
SachinSingh217687
 
Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC  Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC
vipin kumar
 
Amis conference soa deployment. the dirty tricks using bamboo, nexus and xl ...
Amis conference soa deployment. the dirty tricks using  bamboo, nexus and xl ...Amis conference soa deployment. the dirty tricks using  bamboo, nexus and xl ...
Amis conference soa deployment. the dirty tricks using bamboo, nexus and xl ...
Getting value from IoT, Integration and Data Analytics
 
JAX London 2015: Java vs Nodejs
JAX London 2015: Java vs NodejsJAX London 2015: Java vs Nodejs
JAX London 2015: Java vs Nodejs
Chris Bailey
 
01 overview-servlets-and-environment-setup
01 overview-servlets-and-environment-setup01 overview-servlets-and-environment-setup
01 overview-servlets-and-environment-setup
dhrubo kayal
 
Java vs. Java Script for enterprise web applications - Chris Bailey
Java vs. Java Script for enterprise web applications - Chris BaileyJava vs. Java Script for enterprise web applications - Chris Bailey
Java vs. Java Script for enterprise web applications - Chris Bailey
JAXLondon_Conference
 
20160821 coscup-my sql57docstorelab01
20160821 coscup-my sql57docstorelab0120160821 coscup-my sql57docstorelab01
20160821 coscup-my sql57docstorelab01
Ivan Ma
 
Advance java prasentation
Advance java prasentationAdvance java prasentation
Advance java prasentation
dhananajay95
 
Java on Windows Azure (Cloud Computing Expo 2010)
Java on Windows Azure (Cloud Computing Expo 2010)Java on Windows Azure (Cloud Computing Expo 2010)
Java on Windows Azure (Cloud Computing Expo 2010)
David Chou
 
Effective out-of-container Integration Testing
Effective out-of-container Integration TestingEffective out-of-container Integration Testing
Effective out-of-container Integration Testing
Sam Brannen
 
SQL Server 2008 Integration Services
SQL Server 2008 Integration ServicesSQL Server 2008 Integration Services
SQL Server 2008 Integration Services
Eduardo Castro
 
A Jouney Through Wonderland - Jimdo
A Jouney Through Wonderland - JimdoA Jouney Through Wonderland - Jimdo
A Jouney Through Wonderland - Jimdo
Johann Paulus Almeida
 
Kick Start your Application Development and Management Strategy
Kick Start your Application Development and Management Strategy Kick Start your Application Development and Management Strategy
Kick Start your Application Development and Management Strategy
WSO2
 
18CSC311J WEB DESIGN AND DEVELOPMENT UNIT-4
18CSC311J WEB DESIGN AND DEVELOPMENT UNIT-418CSC311J WEB DESIGN AND DEVELOPMENT UNIT-4
18CSC311J WEB DESIGN AND DEVELOPMENT UNIT-4
sivakumarmcs
 
introduction to node.js
introduction to node.jsintroduction to node.js
introduction to node.js
orkaplan
 
CloudConnect 2011 - Building Highly Scalable Java Applications on Windows Azure
CloudConnect 2011 - Building Highly Scalable Java Applications on Windows AzureCloudConnect 2011 - Building Highly Scalable Java Applications on Windows Azure
CloudConnect 2011 - Building Highly Scalable Java Applications on Windows Azure
David Chou
 

Similar to WebLogic Scripting Tool made Cool! (20)

Java on Windows Azure
Java on Windows AzureJava on Windows Azure
Java on Windows Azure
 
Introduction to Apache CloudStack by David Nalley
Introduction to Apache CloudStack by David NalleyIntroduction to Apache CloudStack by David Nalley
Introduction to Apache CloudStack by David Nalley
 
Weblogic scripting LVOUG meetup #11
Weblogic scripting LVOUG meetup #11Weblogic scripting LVOUG meetup #11
Weblogic scripting LVOUG meetup #11
 
Knolx session
Knolx sessionKnolx session
Knolx session
 
AJppt.pptx
AJppt.pptxAJppt.pptx
AJppt.pptx
 
Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC  Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC
 
Amis conference soa deployment. the dirty tricks using bamboo, nexus and xl ...
Amis conference soa deployment. the dirty tricks using  bamboo, nexus and xl ...Amis conference soa deployment. the dirty tricks using  bamboo, nexus and xl ...
Amis conference soa deployment. the dirty tricks using bamboo, nexus and xl ...
 
JAX London 2015: Java vs Nodejs
JAX London 2015: Java vs NodejsJAX London 2015: Java vs Nodejs
JAX London 2015: Java vs Nodejs
 
01 overview-servlets-and-environment-setup
01 overview-servlets-and-environment-setup01 overview-servlets-and-environment-setup
01 overview-servlets-and-environment-setup
 
Java vs. Java Script for enterprise web applications - Chris Bailey
Java vs. Java Script for enterprise web applications - Chris BaileyJava vs. Java Script for enterprise web applications - Chris Bailey
Java vs. Java Script for enterprise web applications - Chris Bailey
 
20160821 coscup-my sql57docstorelab01
20160821 coscup-my sql57docstorelab0120160821 coscup-my sql57docstorelab01
20160821 coscup-my sql57docstorelab01
 
Advance java prasentation
Advance java prasentationAdvance java prasentation
Advance java prasentation
 
Java on Windows Azure (Cloud Computing Expo 2010)
Java on Windows Azure (Cloud Computing Expo 2010)Java on Windows Azure (Cloud Computing Expo 2010)
Java on Windows Azure (Cloud Computing Expo 2010)
 
Effective out-of-container Integration Testing
Effective out-of-container Integration TestingEffective out-of-container Integration Testing
Effective out-of-container Integration Testing
 
SQL Server 2008 Integration Services
SQL Server 2008 Integration ServicesSQL Server 2008 Integration Services
SQL Server 2008 Integration Services
 
A Jouney Through Wonderland - Jimdo
A Jouney Through Wonderland - JimdoA Jouney Through Wonderland - Jimdo
A Jouney Through Wonderland - Jimdo
 
Kick Start your Application Development and Management Strategy
Kick Start your Application Development and Management Strategy Kick Start your Application Development and Management Strategy
Kick Start your Application Development and Management Strategy
 
18CSC311J WEB DESIGN AND DEVELOPMENT UNIT-4
18CSC311J WEB DESIGN AND DEVELOPMENT UNIT-418CSC311J WEB DESIGN AND DEVELOPMENT UNIT-4
18CSC311J WEB DESIGN AND DEVELOPMENT UNIT-4
 
introduction to node.js
introduction to node.jsintroduction to node.js
introduction to node.js
 
CloudConnect 2011 - Building Highly Scalable Java Applications on Windows Azure
CloudConnect 2011 - Building Highly Scalable Java Applications on Windows AzureCloudConnect 2011 - Building Highly Scalable Java Applications on Windows Azure
CloudConnect 2011 - Building Highly Scalable Java Applications on Windows Azure
 

More from Maarten Smeets

Google jib: Building Java containers without Docker
Google jib: Building Java containers without DockerGoogle jib: Building Java containers without Docker
Google jib: Building Java containers without Docker
Maarten Smeets
 
Introduction to Anchore Engine
Introduction to Anchore EngineIntroduction to Anchore Engine
Introduction to Anchore Engine
Maarten Smeets
 
R2DBC Reactive Relational Database Connectivity
R2DBC Reactive Relational Database ConnectivityR2DBC Reactive Relational Database Connectivity
R2DBC Reactive Relational Database Connectivity
Maarten Smeets
 
Performance Issue? Machine Learning to the rescue!
Performance Issue? Machine Learning to the rescue!Performance Issue? Machine Learning to the rescue!
Performance Issue? Machine Learning to the rescue!
Maarten Smeets
 
Performance of Microservice Frameworks on different JVMs
Performance of Microservice Frameworks on different JVMsPerformance of Microservice Frameworks on different JVMs
Performance of Microservice Frameworks on different JVMs
Maarten Smeets
 
Performance of Microservice frameworks on different JVMs
Performance of Microservice frameworks on different JVMsPerformance of Microservice frameworks on different JVMs
Performance of Microservice frameworks on different JVMs
Maarten Smeets
 
VirtualBox networking explained
VirtualBox networking explainedVirtualBox networking explained
VirtualBox networking explained
Maarten Smeets
 
Microservices on Application Container Cloud Service
Microservices on Application Container Cloud ServiceMicroservices on Application Container Cloud Service
Microservices on Application Container Cloud Service
Maarten Smeets
 
WebLogic Stability; Detect and Analyse Stuck Threads
WebLogic Stability; Detect and Analyse Stuck ThreadsWebLogic Stability; Detect and Analyse Stuck Threads
WebLogic Stability; Detect and Analyse Stuck Threads
Maarten Smeets
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to Redis
Maarten Smeets
 
All you need to know about transport layer security
All you need to know about transport layer securityAll you need to know about transport layer security
All you need to know about transport layer security
Maarten Smeets
 
Webservice security considerations and measures
Webservice security considerations and measuresWebservice security considerations and measures
Webservice security considerations and measures
Maarten Smeets
 
Machine learning with R
Machine learning with RMachine learning with R
Machine learning with R
Maarten Smeets
 
Oracle SOA Suite 12.2.1 new features
Oracle SOA Suite 12.2.1 new featuresOracle SOA Suite 12.2.1 new features
Oracle SOA Suite 12.2.1 new features
Maarten Smeets
 
How to build a cloud adapter
How to build a cloud adapterHow to build a cloud adapter
How to build a cloud adapter
Maarten Smeets
 

More from Maarten Smeets (15)

Google jib: Building Java containers without Docker
Google jib: Building Java containers without DockerGoogle jib: Building Java containers without Docker
Google jib: Building Java containers without Docker
 
Introduction to Anchore Engine
Introduction to Anchore EngineIntroduction to Anchore Engine
Introduction to Anchore Engine
 
R2DBC Reactive Relational Database Connectivity
R2DBC Reactive Relational Database ConnectivityR2DBC Reactive Relational Database Connectivity
R2DBC Reactive Relational Database Connectivity
 
Performance Issue? Machine Learning to the rescue!
Performance Issue? Machine Learning to the rescue!Performance Issue? Machine Learning to the rescue!
Performance Issue? Machine Learning to the rescue!
 
Performance of Microservice Frameworks on different JVMs
Performance of Microservice Frameworks on different JVMsPerformance of Microservice Frameworks on different JVMs
Performance of Microservice Frameworks on different JVMs
 
Performance of Microservice frameworks on different JVMs
Performance of Microservice frameworks on different JVMsPerformance of Microservice frameworks on different JVMs
Performance of Microservice frameworks on different JVMs
 
VirtualBox networking explained
VirtualBox networking explainedVirtualBox networking explained
VirtualBox networking explained
 
Microservices on Application Container Cloud Service
Microservices on Application Container Cloud ServiceMicroservices on Application Container Cloud Service
Microservices on Application Container Cloud Service
 
WebLogic Stability; Detect and Analyse Stuck Threads
WebLogic Stability; Detect and Analyse Stuck ThreadsWebLogic Stability; Detect and Analyse Stuck Threads
WebLogic Stability; Detect and Analyse Stuck Threads
 
Introduction to Redis
Introduction to RedisIntroduction to Redis
Introduction to Redis
 
All you need to know about transport layer security
All you need to know about transport layer securityAll you need to know about transport layer security
All you need to know about transport layer security
 
Webservice security considerations and measures
Webservice security considerations and measuresWebservice security considerations and measures
Webservice security considerations and measures
 
Machine learning with R
Machine learning with RMachine learning with R
Machine learning with R
 
Oracle SOA Suite 12.2.1 new features
Oracle SOA Suite 12.2.1 new featuresOracle SOA Suite 12.2.1 new features
Oracle SOA Suite 12.2.1 new features
 
How to build a cloud adapter
How to build a cloud adapterHow to build a cloud adapter
How to build a cloud adapter
 

Recently uploaded

GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Project Management Semester Long Project - Acuity
Project Management Semester Long Project - AcuityProject Management Semester Long Project - Acuity
Project Management Semester Long Project - Acuity
jpupo2018
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
David Brossard
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
fredae14
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 

Recently uploaded (20)

GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Project Management Semester Long Project - Acuity
Project Management Semester Long Project - AcuityProject Management Semester Long Project - Acuity
Project Management Semester Long Project - Acuity
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Recommendation System using RAG Architecture
Recommendation System using RAG ArchitectureRecommendation System using RAG Architecture
Recommendation System using RAG Architecture
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 

WebLogic Scripting Tool made Cool!

  • 1. Maarten Smeets, 06-12-2015 WebLogic Scripting Tool made Cool!
  • 2. Introduction • About AMIS – Located in the Netherlands – Oracle Award winning partner • Maarten Smeets – Senior Oracle Integration Consultant – Experience with Oracle SOA Suite since 2007 – Well certified (SOA, BPM, Java, SQL, PL/SQL among others) – Author of 100+ blog articles (http://javaoraclesoa.blogspot.com) – Working @ AMIS since 2014 @MaartenSmeetsNL https://nl.linkedin.com/in/smeetsm
  • 3. Agenda • Introduction • Using Java within WLST • Using WLST as Jython module • A look into the future • Summary
  • 4. Agenda • Introduction • Using Java within WLST • Using WLST as Jython module • A look into the future • Summary
  • 6. Introduction Based on popular languages • WLST is based on Jython. Jython is an implementation of the Python language for the Java platform Python ranks as 5th most popular programming languageJava ranks as most popular programming language TIOBE index 2015
  • 8. Introduction Mbean trees • domainConfig – configuration hierarchy of the entire domain; represents the configuration MBeans in RuntimeMBeanServer – read only • serverConfig – configuration hierarchy (configuration MBeans) of the server your are connected to – read only • domainRuntime – hierarchy of runtime MBeans for the entire domain – read only • serverRuntime – hierarchy of runtime MBeans for the server you are connected to – read only • edit – writable domain configuration with pending changes; represents the configuration MBeans in the EditMBeanServer • jndi – read-only JNDI tree for the server you are connected to • custom – list of custom MBeans – can be hierarchical/grouped if MBeans use namespaces appropriately http://www.slideshare.net/jambay/weblogic-scripting-tool-overview
  • 9. 9 Introduction What can you do with WLST? Configuration DeploymentManagement Monitoring
  • 14. Agenda • Introduction • Using Java within WLST • Using WLST as Jython module • A look into the future • Summary
  • 15. Using Java within WLST Why? • Extend WLST with Java API’s – Unleash the power of Java API’s on your WLST scripts! • Rewrite Java as WLST – WLST can easily be executed by operations on an application server
  • 16. Using Java with WLST Some differences Import ArrayMethodInstance
  • 17. Using Java with WLST Imports Java WLST import java.util.Hashtable; from java.util import Hashtable
  • 18. Using Java with WLST Creating instances Java WLST Hashtable jndiProps = new Hashtable(); jndiProps = Hashtable() Types are determined by inference
  • 19. Using Java with WLST Methods Java WLST private String getDNToUndeploy(CompositeData[] compositeData) throws Exception def getDNToUndeploy(compositeData): Python has no true private methods Exceptions are determined by inference
  • 20. Using Java with WLST Arrays Java WLST int[] intArray = { 1, 2, 3}; from jarray import array intArray = array ([1, 2, 3],’i’) Java primitives arrays can be created in Jython with the jarray module
  • 21. Using Java with WLST Example: Java http://javaoraclesoa.blogspot.co.uk/2015/05/unleash-power-of-java-apis-on-your-wlst.html
  • 22. Using Java with WLST Example: WLST
  • 23. Agenda • Introduction • Using Java with WLST • Using WLST as Jython module • A look into the future • Summary
  • 24. Using WLST as Jython module Why? • WLST uses Jython 2.2.1 (2007) • Current version of Jython is 2.7 (2015) • Jython 2.7 has many nice things, for example; – Package management: pip install logging – XML API’s: ElementTree – Easy multithreading: multiprocessing – Easy argument parsing: argparse
  • 25. Using WLST as Jython module Argument parsing in WLST import getopt url = None user = None password = None opts, args = getopt.getopt(sys.argv[1:], "e:u:p:") for opt, arg in opts: print opt, arg if opt in "-e": env = arg if opt in "-p": password = arg if opt in "-u": user = arg print "URL: "+url print "Username: "+username print "Password: "+password import sys; print "URL: "+sys.argv[1] print "Username: "+sys.argv[2] print "Password: "+sys.argv[3] Manual argument checking and processing!
  • 26. Using WLST as Jython module Argument parsing in Jython 2.7 import argparse parser = argparse.ArgumentParser() parser.add_argument("username", type=string, help="username") parser.add_argument("password", type=string, help="password") parser.add_argument("url", type=string, help="url") args = parser.parse_args() print "URL: "+args.url print "Username: "+args.username print "Password: "+args.password Type checking Optional/required arguments Help generation Minimal coding
  • 27. Using WLST as Jython module Module installation WLST (Jython 2.2.1) Jython 2.7 Find and download a Jython 2.2.1 compatible module Copy the module to WL_HOME/common/wlst/modules pip install <module name>
  • 28. Using WLST as Jython module How? • You need the classpath • You need the Jython module path • You need a WLST Jython module
  • 29. Using WLST as Jython module How? • You need the classpath • You need the Jython module path • You need a WLST Jython module
  • 30. Using WLST as Jython module Classpath • Start wlst.sh / wlst.cmd – import os – print os.environ[‘CLASSPATH’] • Add the wlfullclient.jar and <WLS_HOME>/oracle_common/modules/* • Done 
  • 31. Using WLST as Jython module How? • You need the classpath • You need the Jython module path • You need a WLST Jython module
  • 32. Using WLST as Jython module Jython module path • Start wlst.sh or wlst.cmd – print sys.path • Done 
  • 33. Using WLST as Jython module How? • You need the classpath • You need the Jython module path • You need a WLST Jython module
  • 34. Using WLST as Jython module • Start wlst.sh or wlst.cmd – writeIniFile("wl.py") • Replace ‘origPrompt = sys.ps1’ with ‘origPrompt = ">>>“’ • Done 
  • 35. Using WLST as Jython module • Create a startjython.sh script to set the CLASSPATH and JYTHONPATH • Ready to roll! import wl wl.connect("weblogic","Welcome01", "t3://localhost:7101") mbServers= wl.getMBean("Servers") servers= mbServers.getServers() for server in servers : print( "Server Name: " + server.getName() ) print( "Done." )
  • 36. Agenda • Introduction • Using Java with WLST • Using WLST as Jython module • A look into the future • Summary
  • 37. A look into the future Cloud Application Foundation
  • 38. A look into the future New WLST features in 12c • WLST 12c introduces Jline integration – use up and down arrows to browse command history • WebLogic Server 12c provides a Maven plugin to allow execution of WLST scripts in for example Continuous Delivery pipelines – https://docs.oracle.com/cd/E24329_01/web.1211/e24368/maven.htm#WLPRG700 • SOA Suite 12.2.1 instance patching only supported with WLST (not Ant or Maven) • WLST 12.2.1 offline mode does not support partitions (yet?) . WLST 12.2.1 online does support partitions (multitenancy)
  • 39. A look into the future However… • wlfullclient.jar is deprecated since 12.2.1 (related to multitenancy?) – http://docs.oracle.com/middleware/1221/wls/NOTES/whatsnew.htm#NOTES155 • RESTful Management Services replacing WLST in the cloud? – http://docs.oracle.com/middleware/1221/wls/NOTES/whatsnew.htm#NOTES353 • WLST has not seen a new Jython version since 11g
  • 40. Agenda • Introduction • Using Java with WLST • Using WLST as Jython module • A look into the future • Summary
  • 41. Summary • WebLogic Scripting Tool is based on popular programming languages • WebLogic Scripting Tool has many uses • WebLogic Scripting Tool is very flexible – can be extended with Java API’s – can be used as Jython module • WebLogic Server is changing because of Oracle Cloud requirements

Editor's Notes

  1. Recent awards: Oracle EMEA Middleware Partner of the Year, 3 times Oracle Netherlands Middleware partner of the year. One of the rare moments in the Netherlands when it isn’t raining.
  2. In interactive mode, the shell managed a persistent connection to the server A script can be executed setWLSEnv.sh and “java weblogic.WLST <script>” or wlst.sh / wlst.cmd. java –cp wlfullclient.jar weblogic.WLST Embedded mode allows running WLST directly from Java using an Interpreter (weblogic.management.scripting.utils.WLSTInterpreter) http://www.qualogy.com/starting-wlst-scripts/ and http://www.slideshare.net/jambay/weblogic-scripting-tool-overview have useful suggestions
  3. Configuration wizard uses this
  4. Interactive and script are not called separate interaction patterns for nothing.
  5. Notice differences between 11g, 12.1.3 and 12.2.1. 12.2.1 includes a single JAR which contains a manifest file containing the classpath (WLS_HOME\wlserver\modules\features\wlst.wls.classpath)
  6. Different from executing directly from WLST!
  7. Ant plugin at least in WLS 8.1. Not deprecated