SlideShare a Scribd company logo
Weblogic- WLST-SCRIPTING
WEBLOGIC-WLST-SCRIPTING
Weblogic- WLST-SCRIPTING
What is WLST ?
WebLogic Scripting tool. This was introduced in weblogic 9.2 . Prior to this
weblogic.Admin java utility was used extensively for command line administration of
weblogic.
WLST uses Jython as scripting language. Jython is pure java based implementation of
Python.
Invoking the WLST script:
Java weblogic.WLST
Or
$WL_HOME/common/bin/wlst.sh
This script will internally invoke the previous command java weblogic.WLST.
NOTE: make sure you are sourcing the environment before executing the WLST.
# . $DOMAIN_HOME/bin/setDomainEnv.sh # ( dot space script location)
How WLST works ?
It works through JMX ( Java Management Extension). The API to managed the
Mbeans ( Management Beans)
Two modes of WLST
Online : this is when connected to a running admin/managed server
Used to browse through the runtime Mbeans of the weblogic
Can change security configuration of the domain
Query the runtime mbeans
Offline : When not connected to running weblogic.
Creation of domain and changing the configuration
Weblogic- WLST-SCRIPTING
Can not change security configuration in this mode…
Template based domain creation.
WLST Basics:
Total Domain is divided into various Tree line verticals.
domainConfig() serverConfig() domainRuntime() serverRuntime() Edit()
Online Online Online Online Online
Similar to the configuration information, WebLogic Server runtime MBeans are arranged
in a hierarchical data structure.
When connected to an Administration Server, you access the runtime MBean hierarchy
by entering the serverRuntime or the domainRuntime command.
The serverRuntime command places WLST at the root of the server runtime
management objects, ServerRuntimeMBean; the domainRuntime command, at the root
of the domain-wide runtime management objects, DomainRuntimeMBean.
When connected to a Managed Server, the root of the runtime MBeans is
ServerRuntimeMBean.
The domain runtime MBean hierarchy exists on the Administration Server only; you
cannot use the domainRuntime command when connected to a Managed Server.
serverRuntime() & domainRuntime() are read-only trees. These two trees are run-time
related trees.
With in each tree you can browser through
Domain Mbean – (root)
| ---- Mbean Type ( ServerMBean)
|-- Mbean Instance
( wl_mng1)
|-- Mbean attributes & Operations
( port no, listen address, start/stop)
Weblogic- WLST-SCRIPTING
|-- Mbean Instance
( wl_mng2)
|--Mbean attributes & Operations
Types of using WLST :
1) Interactive ( browsing through the Mbean structure)
cd()
ls()
help(‘command-name’)
cd(configuration-tree-name)
ls()
directories are the Mbeans ( start with dr)
-r— files are attributes
–r—x files are operations
attributes can be changed using set & get commands.
2) Invoking a script from command line.
The script should have an extension .py to be able to invoke from command
line.
$ Java weblogic.WLST –skipWLSModuleScanning ( run
$DOMAIN_HOME/bin/setDomainEnv.sh before invoking WLST to setup the
environment)
Invoking WLST can be invoked in two ways.
1) $WL_HOME/common/bin/Wlst.sh
connect()
java weblogic.WLST -skipWLSModuleScanning wlst-application-status.py
localhost:10001 weblogic weblogic
Weblogic- WLST-SCRIPTING
Redirection of output :
redirect(outputFile,[toStdOut])
stopRedirect()
CMO. – current management object
After cd(), u can get the properties by calling cmo.operation
creating a domain template
readDomain('/home/durgasoft/domains/DurgaSoft_Dmn')
writeTemplate('/home/durgasoft/mytemplate.jar')
closeDomain()
Weblogic- WLST-SCRIPTING
createDomain('/home/durgasoft/mytemplate.jar','/home/durgasoft/domains/new-
domain','wlsadmin','wlsadmin')
otherway is to use this template with config.sh script…2nd step
alternative way is
configToScript(‘domain-directory’,’location-for-scripts’)
dumpVariables()
dumpStack()
after ls() there will be both properties & Operations
Properties will not have x ( -r---). where as operations will have –r-x
To acquire a lock and edit the configuration of the domain
edit()
startEdit()
save()
activate(block=”true”)
 import X imports the module X, and creates a reference to that module in
the current namespace. Or in other words, after you’ve run this statement,
you can use X.name to refer to things defined in module X.
 from X import * imports the module X, and creates references in the
current namespace to all public objects defined by that module (that is,
everything that doesn’t have a name starting with “_”). Or in other words,
after you’ve run this statement, you can simply use a plain name to refer to
things defined in module X. But X itself is not defined, so X.name doesn’t
work. And if name was already defined, it is replaced by the new version. And
if name in X is changed to point to some other object, your module won’t
notice.
 from X import a, b, c imports the module X, and creates references in the
current namespace to the given objects. Or in other words, you can now
usea and b and c in your program.
Weblogic- WLST-SCRIPTING
 Finally, X = __import__(‘X’) works like import X, with the difference
that you 1) pass the module name as a string, and 2) explicitly assign it to a
variable in your current namespac
Prompt()
sys.ps1="myprompt>"
cmo- is current management object. You can use get or set methods to retrive/assign
properties to the current management object using this.
scripts
1) Script to Check the Status of All the deployed Applications
Wlst-application-status.py
How to Invoke : java weblogic.WLST –skipWLSModuleScanning wlst-
application-status.py
#This wlst script give the status of the deployed applications
import os
import sys
username='weblogic'
password='weblogic'
url='t3://localhost:7001'
connect(username, password, url)
print ' Application Deployed '
cd("AppDeployments")
app = ls(returnMap='true')
domainRuntime()
cd("AppRuntimeStateRuntime/AppRuntimeStateRuntime")
i=1
for appName in app:
appState = cmo.getIntendedState(appName, "mycluster")
print appName + '' + '==>' + appState
i=i+1
Weblogic- WLST-SCRIPTING
2) Script for resetting administrator’s password for a weblogic domain
wlst-admin-password-change.py
How to Invoke : java weblogic.WLST –skipWLSModuleScanning wlst-admin-
password-change.py
DomainName = "mydomain"
ADMINUrl = "t3://localhost:7001"
ADMINuser = "weblogic"
oldPassword = "weblogic"
newPassword = "weblogicadmin"
print ' ---- Changing the Administration Password ------- '
print ' '
connect(ADMINuser,oldPassword,ADMINUrl)
cd('/SecurityConfiguration/'+DomainName+'/Realms/myrealm/AuthenticationProviders
/DefaultAuthenticator')
cmo.resetUserPassword(ADMINuser,newPassword)
print ' ---- Weblogic Admin Password Reset Completed Successfully --- '
print ' '
disconnect()
print ' '
print ' --- Testing with the new Credentials --- '
print ' '
connect(ADMINuser,newPassword,ADMINUrl)
print '--- Testing with the new Credentials Completed Successfully ---'
Weblogic- WLST-SCRIPTING
print ' '
disconnect()
3) Cluster Creation ( cluster_creation.py)
How to Invoke : java weblogic.WLST –skipWLSModuleScanning
cluster_creation.py
DurgaSoft# cat cluster_creation.py
# This example script:
# * connects WLST to the Admin Examples Server
# * starts an edit session
# * creates 10 managed servers.
# * It creates 2 clusters and assigns the servers to the respective clusters.
from java.util import *
from javax.management import *
import javax.management.Attribute
print 'starting the script ....'
username = 'weblogic'
password = 'weblogic'
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}
Weblogic- WLST-SCRIPTING
connect(username,password,'t3://localhost:7001')
clustHM = HashMap()
edit()
startEdit()
for c in clusters:
print 'creating cluster '+c
clu = create(c,'Cluster')
clustHM.put(c,clu)
cd('....')
clus1 = clustHM.get(clusters[0])
clus2 = clustHM.get(clusters[1])
for m, lp in ms1.items():
managedServer = create(m,'Server')
print 'creating managed server '+m
managedServer.setListenPort(lp)
managedServer.setCluster(clus1)
for m1, lp1 in ms2.items():
managedServer = create(m1,'Server')
Weblogic- WLST-SCRIPTING
print 'creating managed server '+m1
managedServer.setListenPort(lp1)
managedServer.setCluster(clus2)
save()
activate(block="true")
disconnect()
4) Cluster Deletion Script ( cluster_deletion.py)
How to invoke it : java weblogic.WLST –skipWLSModuleScanning cluster_deletion.py
DurgaSoft# cat cluster_deletion.py
# This example script corresponds to the cluster_creation.py script:
# * connects WLST to the Admin Examples Server
# * starts an edit session
# * For each cluster created in cluster_creation.py, it deletes the
# * managed servers and the migratabletargets.
# * Lastly, it deletes the clusters.
print 'starting the script ....'
username = 'weblogic'
password = 'weblogic'
clusters = 'cluster1','cluster2'
ms1 = {'managed1':7701,'managed2':7702,'managed3':7703, 'managed4':7704,
'managed5':7705}
ms2 = {'managed6':7706,'managed7':7707,'managed8':7708, 'managed9':7709,
Weblogic- WLST-SCRIPTING
'managed10':7710}
connect(username,password,'t3://localhost:7001')
edit()
startEdit()
s = " (migratable)"
for m, lp in ms1.items():
print 'deleting managed server '+m
serverMBean = getMBean("Servers/"+m)
serverMBean.setCluster(None)
managedServer = delete(m,'Server')
for m1, lp1 in ms2.items():
print 'deleting managed server '+m1
serverMBean = getMBean("Servers/"+m1)
serverMBean.setCluster(None)
managedServer = delete(m1,'Server')
for c in clusters:
print 'deleting cluster '+c
clu = delete(c,'Cluster')
Weblogic- WLST-SCRIPTING
save()
activate(block="true")
print 'Saved Changes ...'
print 'End of script ...'
disconnect()
5) Script to create JMS Resources ( configJMSSystemResource.py )
How to Invoke the script :
# java weblogic.WLST –skipWLSModuleScanning configJMSSystemResource.py
DurgaSoft# cat configJMSSystemResource.py
"""
This script starts an edit session, creates two different JMS Servers,
targets the jms servers to the server WLST is connected to and creates
jms topics, jms queues and jms templates in a JMS System module. The
jms queues and topics are targeted using sub-deployments.
"""
import sys
from java.lang import System
print "Starting the script ..."
Weblogic- WLST-SCRIPTING
connect('weblogic','weblogic','t3://localhost:7001')
edit()
startEdit()
servermb=getMBean("Servers/examplesServer")
if servermb is None:
print 'Value is Null'
else:
jmsserver1mb = create('MyJMSServer1','JMSServer')
jmsserver1mb.addTarget(servermb)
jmsserver2mb = create('MyJMSServer2','JMSServer')
jmsserver2mb.addTarget(servermb)
jmsMySystemResource = create("myJmsSystemResource","JMSSystemResource")
jmsMySystemResource.addTarget(servermb)
subDep1mb = jmsMySystemResource.createSubDeployment('DeployToJMSServer1')
subDep1mb.addTarget(jmsserver1mb)
subDep2mb = jmsMySystemResource.createSubDeployment('DeployToJMSServer2')
subDep2mb.addTarget(jmsserver2mb)
theJMSResource = jmsMySystemResource.getJMSResource()
connfact1 = theJMSResource.createConnectionFactory('MyCF1')
Weblogic- WLST-SCRIPTING
connfact1.setJNDIName('jms.MyCF1')
connfact1.setSubDeploymentName('DeployToJMSServer1')
connfact2 = theJMSResource.createConnectionFactory('MyCF2')
connfact2.setJNDIName('jms.MyCF2')
connfact2.setSubDeploymentName('DeployToJMSServer2')
print "Creating MyQueue1..."
jmsqueue1 = theJMSResource.createQueue('MyQueue1')
jmsqueue1.setJNDIName('jms.MyJMSQueue1')
jmsqueue1.setSubDeploymentName('DeployToJMSServer1')
print "Creating MyQueue2..."
jmsqueue2 = theJMSResource.createQueue('MyQueue2')
jmsqueue2.setJNDIName('jms.MyJMSQueue2')
jmsqueue2.setSubDeploymentName('DeployToJMSServer2')
print "Creating MyTopic1..."
jmstopic1 = theJMSResource.createTopic("MyTopic1")
jmstopic1.setJNDIName('jms.MyJMSTopic1')
jmstopic1.setSubDeploymentName('DeployToJMSServer1')
print "Creating MyTopic2..."
jmstopic2 = theJMSResource.createTopic("MyTopic2")
jmstopic2.setJNDIName('jms.MyJMSTopic2')
jmstopic2.setSubDeploymentName('DeployToJMSServer2')
Weblogic- WLST-SCRIPTING
print "Creating MyJMSTemplate..."
jmstemplate = theJMSResource.createTemplate('MyJMSTemplate')
jmstemplate.setMaximumMessageSize(20)
try:
save()
activate(block="true")
print "script returns SUCCESS"
except:
print "Error while trying to save and/or activate!!!"
dumpStack()
6) Deleting the JMS Resources (deleteJMSSystemResource.py)
How to Invoke the Script:
#java weblogic.WLST –skipWLSModuleScanning deleteJMSSystemResource.py
DurgaSoft# cat deleteJMSSystemResource.py
# This example script connects WLST to the Admin Examples Server
# * starts an edit session
# * removes a JMS system resource module.
import sys
from java.lang import System
Weblogic- WLST-SCRIPTING
print 'starting the script ....'
connect('weblogic','weblogic','t3://localhost:7001')
edit()
startEdit()
jmsMySystemResource = delete("myJmsSystemResource","JMSSystemResource")
jmsMyServer1 = delete("MyJMSServer1","JMSServer")
jmsMyServer2 = delete("MyJMSServer2","JMSServer")
save()
activate(block="true")
print 'System Resource removed ...'
disconnect()
7) Script to create JDBC resources (jdbc_data_source_creation.py)
How to Invoke :
# java weblogic.WLST –skipWLSModuleScanning jdbc_data_source_creation.py
DurgaSoft# cat jdbc_data_source_creation.py
"""
This script configures a JDBC data source as a System Module and deploys it
to the server
"""
connect("weblogic","weblogic")
edit()
Weblogic- WLST-SCRIPTING
# Change these names as necessary
dsname="myJDBCDataSource"
server="examplesServer"
cd("Servers/"+server)
target=cmo
cd("../..")
startEdit()
# start creation
print 'Creating JDBCSystemResource with name '+dsname
jdbcSR = create(dsname,"JDBCSystemResource")
theJDBCResource = jdbcSR.getJDBCResource()
theJDBCResource.setName("myJDBCDataSource")
connectionPoolParams = theJDBCResource.getJDBCConnectionPoolParams()
connectionPoolParams.setConnectionReserveTimeoutSeconds(25)
connectionPoolParams.setMaxCapacity(100)
connectionPoolParams.setTestTableName("SYSTABLES")
dsParams = theJDBCResource.getJDBCDataSourceParams()
dsParams.addJNDIName("ds.myJDBCDataSource")
driverParams = theJDBCResource.getJDBCDriverParams()
driverParams.setUrl("jdbc:pointbase:server://localhost/demo")
driverParams.setDriverName("com.pointbase.xa.xaDataSource")
# driverParams.setUrl("jdbc:oracle:thin:@my-oracle-server:my-oracle-server-port:my-
Weblogic- WLST-SCRIPTING
oracle-sid")
# driverParams.setDriverName("oracle.jdbc.driver.OracleDriver")
driverParams.setPassword("examples")
# driverParams.setLoginDelaySeconds(60)
driverProperties = driverParams.getProperties()
proper = driverProperties.createProperty("user")
#proper.setName("user")
proper.setValue("examples")
proper1 = driverProperties.createProperty("DatabaseName")
#proper1.setName("DatabaseName")
proper1.setValue("jdbc:pointbase:server://localhost/demo")
jdbcSR.addTarget(target)
save()
activate(block="true")
print 'Done configuring the data source'
8) deletion of datasources (jdbc_data_source_deletion.py)
How to Invoke It:
# java weblogic.WLST –skipWLSModuleScanning
jdbc_data_source_deletion.py
Weblogic- WLST-SCRIPTING
DurgaSoft# cat jdbc_data_source_deletion.py
print 'starting the script ....'
username = 'weblogic'
password = 'weblogic'
connect(username,password,'t3://localhost:7001')
edit()
startEdit()
delete('myJDBCDataSource','JDBCSystemResource')
save()
activate(block="true")
Finding MBeans and Attributes
To locate a particular MBean and attribute, you use the find command. WLST returns
the pathname to the MBean that stores the attribute and its value. You can use the
getMBean command to return the MBean specified by the path. For more information,
see find and getMBean.
For example:
wls:/mydomain/edit !> find('logfilename')
searching ...
/ApplicationRuntimes/myserver_wlnav.war/WebAppComponentRuntime/myserver
_myserver_wlnav.war_wlnav_/wlnavLogFilename null
/Servers/myserver JDBCLogFileName jdbc.log
/Servers/myserver/WebServer/myserver LogFileName access.log
wls:/mydomain/edit !>
bean=getMBean('Servers/myserver/WebServer/myserver')
wls:/mydomain/edit !> print bean
[MBeanServerInvocationHandler]mydomain:Name=myserver,Type=WebServer,Ser
ver=myserver
wls:/mydomain/edit !>
Weblogic- WLST-SCRIPTING
Note: getMBean does not throw an exception when an instance is not found.
Alternatively, the getPath command returns the MBean path for a specified MBean
instance or ObjectName for the MBean in the current MBean hierarchy. See getPath.
wls:/mydomain/serverConfig>path=getPath('com.bea:Name=myserver,Type=Ser
ver')
wls:/mydomain/serverConfig> print path
Servers/myserver

More Related Content

What's hot

Java assgn
Java assgnJava assgn
Java assgnaa11bb11
 
Summary tables with flexviews
Summary tables with flexviewsSummary tables with flexviews
Summary tables with flexviews
Justin Swanhart
 
A brief introduction to PostgreSQL
A brief introduction to PostgreSQLA brief introduction to PostgreSQL
A brief introduction to PostgreSQL
Vu Hung Nguyen
 
Data Processing Inside PostgreSQL
Data Processing Inside PostgreSQLData Processing Inside PostgreSQL
Data Processing Inside PostgreSQL
EDB
 
Query logging with proxysql
Query logging with proxysqlQuery logging with proxysql
Query logging with proxysql
YoungHeon (Roy) Kim
 
MySQL Replication Overview -- PHPTek 2016
MySQL Replication Overview -- PHPTek 2016MySQL Replication Overview -- PHPTek 2016
MySQL Replication Overview -- PHPTek 2016
Dave Stokes
 
Threads v3
Threads v3Threads v3
Threads v3
Sunil OS
 
MySQL replication & cluster
MySQL replication & clusterMySQL replication & cluster
MySQL replication & clusterelliando dias
 
Spring 4 final xtr_presentation
Spring 4 final xtr_presentationSpring 4 final xtr_presentation
Spring 4 final xtr_presentation
sourabh aggarwal
 
External Language Stored Procedures for MySQL
External Language Stored Procedures for MySQLExternal Language Stored Procedures for MySQL
External Language Stored Procedures for MySQLAntony T Curtis
 
Cassandra 3.0 Data Modeling
Cassandra 3.0 Data ModelingCassandra 3.0 Data Modeling
Cassandra 3.0 Data Modeling
DataStax Academy
 
My sql failover test using orchestrator
My sql failover test  using orchestratorMy sql failover test  using orchestrator
My sql failover test using orchestrator
YoungHeon (Roy) Kim
 
Continous delivery with sbt
Continous delivery with sbtContinous delivery with sbt
Continous delivery with sbt
Wojciech Pituła
 
Using Perl Stored Procedures for MariaDB
Using Perl Stored Procedures for MariaDBUsing Perl Stored Procedures for MariaDB
Using Perl Stored Procedures for MariaDB
Antony T Curtis
 
Perl Stored Procedures for MySQL (2009)
Perl Stored Procedures for MySQL (2009)Perl Stored Procedures for MySQL (2009)
Perl Stored Procedures for MySQL (2009)Antony T Curtis
 
Zookeeper
ZookeeperZookeeper
Zookeeper
Geng-Dian Huang
 
SBT Concepts, part 2
SBT Concepts, part 2SBT Concepts, part 2
SBT Concepts, part 2
Renat Bekbolatov
 
adding_os_command_capability_to_plsql_with_java_stored_procedures
adding_os_command_capability_to_plsql_with_java_stored_proceduresadding_os_command_capability_to_plsql_with_java_stored_procedures
adding_os_command_capability_to_plsql_with_java_stored_proceduresMary Wagner
 
Infinispan,Lucene,Hibername OGM
Infinispan,Lucene,Hibername OGMInfinispan,Lucene,Hibername OGM
Infinispan,Lucene,Hibername OGM
JBug Italy
 
JDBC Basics (In 20 Minutes Flat)
JDBC Basics (In 20 Minutes Flat)JDBC Basics (In 20 Minutes Flat)
JDBC Basics (In 20 Minutes Flat)
Craig Dickson
 

What's hot (20)

Java assgn
Java assgnJava assgn
Java assgn
 
Summary tables with flexviews
Summary tables with flexviewsSummary tables with flexviews
Summary tables with flexviews
 
A brief introduction to PostgreSQL
A brief introduction to PostgreSQLA brief introduction to PostgreSQL
A brief introduction to PostgreSQL
 
Data Processing Inside PostgreSQL
Data Processing Inside PostgreSQLData Processing Inside PostgreSQL
Data Processing Inside PostgreSQL
 
Query logging with proxysql
Query logging with proxysqlQuery logging with proxysql
Query logging with proxysql
 
MySQL Replication Overview -- PHPTek 2016
MySQL Replication Overview -- PHPTek 2016MySQL Replication Overview -- PHPTek 2016
MySQL Replication Overview -- PHPTek 2016
 
Threads v3
Threads v3Threads v3
Threads v3
 
MySQL replication & cluster
MySQL replication & clusterMySQL replication & cluster
MySQL replication & cluster
 
Spring 4 final xtr_presentation
Spring 4 final xtr_presentationSpring 4 final xtr_presentation
Spring 4 final xtr_presentation
 
External Language Stored Procedures for MySQL
External Language Stored Procedures for MySQLExternal Language Stored Procedures for MySQL
External Language Stored Procedures for MySQL
 
Cassandra 3.0 Data Modeling
Cassandra 3.0 Data ModelingCassandra 3.0 Data Modeling
Cassandra 3.0 Data Modeling
 
My sql failover test using orchestrator
My sql failover test  using orchestratorMy sql failover test  using orchestrator
My sql failover test using orchestrator
 
Continous delivery with sbt
Continous delivery with sbtContinous delivery with sbt
Continous delivery with sbt
 
Using Perl Stored Procedures for MariaDB
Using Perl Stored Procedures for MariaDBUsing Perl Stored Procedures for MariaDB
Using Perl Stored Procedures for MariaDB
 
Perl Stored Procedures for MySQL (2009)
Perl Stored Procedures for MySQL (2009)Perl Stored Procedures for MySQL (2009)
Perl Stored Procedures for MySQL (2009)
 
Zookeeper
ZookeeperZookeeper
Zookeeper
 
SBT Concepts, part 2
SBT Concepts, part 2SBT Concepts, part 2
SBT Concepts, part 2
 
adding_os_command_capability_to_plsql_with_java_stored_procedures
adding_os_command_capability_to_plsql_with_java_stored_proceduresadding_os_command_capability_to_plsql_with_java_stored_procedures
adding_os_command_capability_to_plsql_with_java_stored_procedures
 
Infinispan,Lucene,Hibername OGM
Infinispan,Lucene,Hibername OGMInfinispan,Lucene,Hibername OGM
Infinispan,Lucene,Hibername OGM
 
JDBC Basics (In 20 Minutes Flat)
JDBC Basics (In 20 Minutes Flat)JDBC Basics (In 20 Minutes Flat)
JDBC Basics (In 20 Minutes Flat)
 

Viewers also liked

Part 1 (durgasoft scjp notes) www.javaera.com
Part 1 (durgasoft scjp notes) www.javaera.comPart 1 (durgasoft scjp notes) www.javaera.com
Part 1 (durgasoft scjp notes) www.javaera.com
Ashish Miyan
 
Spring Orielly
Spring OriellySpring Orielly
Spring Oriellyjbashask
 
Xsd Basics R&D with ORACLE SOA
Xsd Basics R&D with ORACLE SOAXsd Basics R&D with ORACLE SOA
Xsd Basics R&D with ORACLE SOA
prathap kumar
 
Automation testing material by Durgasoft,hyderabad
Automation testing material by Durgasoft,hyderabadAutomation testing material by Durgasoft,hyderabad
Automation testing material by Durgasoft,hyderabad
Durga Prasad
 
Experiment
ExperimentExperiment
Experimentjbashask
 
Spring Fa Qs
Spring Fa QsSpring Fa Qs
Spring Fa Qsjbashask
 
Web services tutorial
Web services tutorialWeb services tutorial
Web services tutorial
prathap kumar
 
Membangun aplikasi java restful web service [bagian 2] menggunakan hibernate
Membangun aplikasi java restful web service [bagian 2] menggunakan hibernateMembangun aplikasi java restful web service [bagian 2] menggunakan hibernate
Membangun aplikasi java restful web service [bagian 2] menggunakan hibernate
Eko Kurniawan Khannedy
 
Spring orm notes_by_soma_sekhar_reddy_javabynataraj
Spring orm notes_by_soma_sekhar_reddy_javabynatarajSpring orm notes_by_soma_sekhar_reddy_javabynataraj
Spring orm notes_by_soma_sekhar_reddy_javabynataraj
Satya Johnny
 
02 java spring-hibernate-experience-questions
02 java spring-hibernate-experience-questions02 java spring-hibernate-experience-questions
02 java spring-hibernate-experience-questionsDhiraj Champawat
 
Tutorial web service (web & client) with spring web services
Tutorial web service (web & client) with spring web servicesTutorial web service (web & client) with spring web services
Tutorial web service (web & client) with spring web servicesmuhammad arif nasution
 
Java Design Pattern Interview Questions
Java Design Pattern Interview QuestionsJava Design Pattern Interview Questions
Java Design Pattern Interview Questionsjbashask
 
Android sai tech (2)
Android sai tech (2)Android sai tech (2)
Android sai tech (2)Satya Johnny
 
Manual Testing Material by Durgasoft
Manual Testing Material by DurgasoftManual Testing Material by Durgasoft
Manual Testing Material by Durgasoft
Durga Prasad
 
JAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examplesJAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examplesSunil Kumar Gunasekaran
 
Corejava ratan
Corejava ratanCorejava ratan
Corejava ratan
Satya Johnny
 
Untangling spring week1
Untangling spring week1Untangling spring week1
Untangling spring week1
Derek Jacoby
 
Effective DevOps by using Docker and Chef together !
Effective DevOps by using Docker and Chef together !Effective DevOps by using Docker and Chef together !
Effective DevOps by using Docker and Chef together !
WhiteHedge Technologies Inc.
 

Viewers also liked (19)

Part 1 (durgasoft scjp notes) www.javaera.com
Part 1 (durgasoft scjp notes) www.javaera.comPart 1 (durgasoft scjp notes) www.javaera.com
Part 1 (durgasoft scjp notes) www.javaera.com
 
Spring Orielly
Spring OriellySpring Orielly
Spring Orielly
 
Xsd Basics R&D with ORACLE SOA
Xsd Basics R&D with ORACLE SOAXsd Basics R&D with ORACLE SOA
Xsd Basics R&D with ORACLE SOA
 
E10132
E10132E10132
E10132
 
Automation testing material by Durgasoft,hyderabad
Automation testing material by Durgasoft,hyderabadAutomation testing material by Durgasoft,hyderabad
Automation testing material by Durgasoft,hyderabad
 
Experiment
ExperimentExperiment
Experiment
 
Spring Fa Qs
Spring Fa QsSpring Fa Qs
Spring Fa Qs
 
Web services tutorial
Web services tutorialWeb services tutorial
Web services tutorial
 
Membangun aplikasi java restful web service [bagian 2] menggunakan hibernate
Membangun aplikasi java restful web service [bagian 2] menggunakan hibernateMembangun aplikasi java restful web service [bagian 2] menggunakan hibernate
Membangun aplikasi java restful web service [bagian 2] menggunakan hibernate
 
Spring orm notes_by_soma_sekhar_reddy_javabynataraj
Spring orm notes_by_soma_sekhar_reddy_javabynatarajSpring orm notes_by_soma_sekhar_reddy_javabynataraj
Spring orm notes_by_soma_sekhar_reddy_javabynataraj
 
02 java spring-hibernate-experience-questions
02 java spring-hibernate-experience-questions02 java spring-hibernate-experience-questions
02 java spring-hibernate-experience-questions
 
Tutorial web service (web & client) with spring web services
Tutorial web service (web & client) with spring web servicesTutorial web service (web & client) with spring web services
Tutorial web service (web & client) with spring web services
 
Java Design Pattern Interview Questions
Java Design Pattern Interview QuestionsJava Design Pattern Interview Questions
Java Design Pattern Interview Questions
 
Android sai tech (2)
Android sai tech (2)Android sai tech (2)
Android sai tech (2)
 
Manual Testing Material by Durgasoft
Manual Testing Material by DurgasoftManual Testing Material by Durgasoft
Manual Testing Material by Durgasoft
 
JAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examplesJAVA Notes - All major concepts covered with examples
JAVA Notes - All major concepts covered with examples
 
Corejava ratan
Corejava ratanCorejava ratan
Corejava ratan
 
Untangling spring week1
Untangling spring week1Untangling spring week1
Untangling spring week1
 
Effective DevOps by using Docker and Chef together !
Effective DevOps by using Docker and Chef together !Effective DevOps by using Docker and Chef together !
Effective DevOps by using Docker and Chef together !
 

Similar to java

Building WebLogic Domains With WLST
Building WebLogic Domains With WLSTBuilding WebLogic Domains With WLST
Building WebLogic Domains With WLST
C2B2 Consulting
 
Weblogic Server Overview Weblogic Scripting Tool
Weblogic Server Overview Weblogic Scripting ToolWeblogic Server Overview Weblogic Scripting Tool
Weblogic Server Overview Weblogic Scripting Tool
Gokhan Fazli Celik
 
Active mq Installation and Master Slave setup
Active mq Installation and Master Slave setupActive mq Installation and Master Slave setup
Active mq Installation and Master Slave setup
Ramakrishna Narkedamilli
 
Osiąganie mądrej architektury z Symfony2
Osiąganie mądrej architektury z Symfony2 Osiąganie mądrej architektury z Symfony2
Osiąganie mądrej architektury z Symfony2
3camp
 
Harmonious Development: Via Vagrant and Puppet
Harmonious Development: Via Vagrant and PuppetHarmonious Development: Via Vagrant and Puppet
Harmonious Development: Via Vagrant and Puppet
Achieve Internet
 
Celery with python
Celery with pythonCelery with python
Celery with python
Alexandre González Rodríguez
 
Build Automation 101
Build Automation 101Build Automation 101
Build Automation 101
Martin Jackson
 
Cloud Application Blueprints with Apache Brooklyn by Alex Henevald
Cloud Application Blueprints with Apache Brooklyn by Alex HenevaldCloud Application Blueprints with Apache Brooklyn by Alex Henevald
Cloud Application Blueprints with Apache Brooklyn by Alex Henevald
buildacloud
 
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScriptJavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
Dave Stokes
 
WebSphere Message Broker v6.x Overview - 2008-01-09
WebSphere Message Broker v6.x Overview - 2008-01-09WebSphere Message Broker v6.x Overview - 2008-01-09
WebSphere Message Broker v6.x Overview - 2008-01-09
Mårten Gustafson
 
Bpug mcollective 20140624
Bpug mcollective 20140624Bpug mcollective 20140624
Bpug mcollective 20140624
Johan De Wit
 
Ansible
AnsibleAnsible
Ansible
Raul Leite
 
ZK MVVM, Spring & JPA On Two PaaS Clouds
ZK MVVM, Spring & JPA On Two PaaS CloudsZK MVVM, Spring & JPA On Two PaaS Clouds
ZK MVVM, Spring & JPA On Two PaaS CloudsSimon Massey
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best PracticesMySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
Kenny Gryp
 
Virtualizing Java in Java (jug.ru)
Virtualizing Java in Java (jug.ru)Virtualizing Java in Java (jug.ru)
Virtualizing Java in Java (jug.ru)
aragozin
 
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Codemotion
 
ConFoo MySQL Replication Evolution : From Simple to Group Replication
ConFoo  MySQL Replication Evolution : From Simple to Group ReplicationConFoo  MySQL Replication Evolution : From Simple to Group Replication
ConFoo MySQL Replication Evolution : From Simple to Group Replication
Dave Stokes
 
MySQL Replication Evolution -- Confoo Montreal 2017
MySQL Replication Evolution -- Confoo Montreal 2017MySQL Replication Evolution -- Confoo Montreal 2017
MySQL Replication Evolution -- Confoo Montreal 2017
Dave Stokes
 

Similar to java (20)

WLST
WLSTWLST
WLST
 
Building WebLogic Domains With WLST
Building WebLogic Domains With WLSTBuilding WebLogic Domains With WLST
Building WebLogic Domains With WLST
 
Weblogic Server Overview Weblogic Scripting Tool
Weblogic Server Overview Weblogic Scripting ToolWeblogic Server Overview Weblogic Scripting Tool
Weblogic Server Overview Weblogic Scripting Tool
 
Active mq Installation and Master Slave setup
Active mq Installation and Master Slave setupActive mq Installation and Master Slave setup
Active mq Installation and Master Slave setup
 
Presentation
PresentationPresentation
Presentation
 
Osiąganie mądrej architektury z Symfony2
Osiąganie mądrej architektury z Symfony2 Osiąganie mądrej architektury z Symfony2
Osiąganie mądrej architektury z Symfony2
 
Harmonious Development: Via Vagrant and Puppet
Harmonious Development: Via Vagrant and PuppetHarmonious Development: Via Vagrant and Puppet
Harmonious Development: Via Vagrant and Puppet
 
Celery with python
Celery with pythonCelery with python
Celery with python
 
Build Automation 101
Build Automation 101Build Automation 101
Build Automation 101
 
Cloud Application Blueprints with Apache Brooklyn by Alex Henevald
Cloud Application Blueprints with Apache Brooklyn by Alex HenevaldCloud Application Blueprints with Apache Brooklyn by Alex Henevald
Cloud Application Blueprints with Apache Brooklyn by Alex Henevald
 
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScriptJavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
JavaScript and Friends August 20th, 20201 -- MySQL Shell and JavaScript
 
WebSphere Message Broker v6.x Overview - 2008-01-09
WebSphere Message Broker v6.x Overview - 2008-01-09WebSphere Message Broker v6.x Overview - 2008-01-09
WebSphere Message Broker v6.x Overview - 2008-01-09
 
Bpug mcollective 20140624
Bpug mcollective 20140624Bpug mcollective 20140624
Bpug mcollective 20140624
 
Ansible
AnsibleAnsible
Ansible
 
ZK MVVM, Spring & JPA On Two PaaS Clouds
ZK MVVM, Spring & JPA On Two PaaS CloudsZK MVVM, Spring & JPA On Two PaaS Clouds
ZK MVVM, Spring & JPA On Two PaaS Clouds
 
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best PracticesMySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
MySQL InnoDB Cluster - New Features in 8.0 Releases - Best Practices
 
Virtualizing Java in Java (jug.ru)
Virtualizing Java in Java (jug.ru)Virtualizing Java in Java (jug.ru)
Virtualizing Java in Java (jug.ru)
 
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
Gianluca Arbezzano Wordpress: gestione delle installazioni e scalabilità con ...
 
ConFoo MySQL Replication Evolution : From Simple to Group Replication
ConFoo  MySQL Replication Evolution : From Simple to Group ReplicationConFoo  MySQL Replication Evolution : From Simple to Group Replication
ConFoo MySQL Replication Evolution : From Simple to Group Replication
 
MySQL Replication Evolution -- Confoo Montreal 2017
MySQL Replication Evolution -- Confoo Montreal 2017MySQL Replication Evolution -- Confoo Montreal 2017
MySQL Replication Evolution -- Confoo Montreal 2017
 

More from prathap kumar

Xml material
Xml materialXml material
Xml material
prathap kumar
 
Xml material
Xml materialXml material
Xml material
prathap kumar
 
E13882== ORACLE SOA COOK BOOK
E13882== ORACLE SOA COOK BOOKE13882== ORACLE SOA COOK BOOK
E13882== ORACLE SOA COOK BOOK
prathap kumar
 
While R&D WITH ORACLE SOA
While R&D WITH ORACLE SOAWhile R&D WITH ORACLE SOA
While R&D WITH ORACLE SOA
prathap kumar
 
Synch calling asynchadd
Synch calling asynchaddSynch calling asynchadd
Synch calling asynchadd
prathap kumar
 
Stored procedure
Stored procedureStored procedure
Stored procedure
prathap kumar
 
Mediator-ORACLE SOA
Mediator-ORACLE SOAMediator-ORACLE SOA
Mediator-ORACLE SOA
prathap kumar
 
Manual device+settings ORACLE SOA
Manual device+settings ORACLE SOAManual device+settings ORACLE SOA
Manual device+settings ORACLE SOA
prathap kumar
 
Jndicreation of database adapter
Jndicreation of database adapterJndicreation of database adapter
Jndicreation of database adapter
prathap kumar
 
Humantask MAKE EASY DUDE
Humantask  MAKE EASY DUDEHumantask  MAKE EASY DUDE
Humantask MAKE EASY DUDE
prathap kumar
 
File2db
File2dbFile2db
File2db
prathap kumar
 
Exceptionhandling4remote fault
Exceptionhandling4remote faultExceptionhandling4remote fault
Exceptionhandling4remote fault
prathap kumar
 
Dvm
DvmDvm
whileloop
whileloopwhileloop
whileloop
prathap kumar
 
Compensation
CompensationCompensation
Compensation
prathap kumar
 
Bam
BamBam
Database adapter
Database adapterDatabase adapter
Database adapter
prathap kumar
 

More from prathap kumar (20)

Oracle sql material
Oracle sql materialOracle sql material
Oracle sql material
 
Xml material
Xml materialXml material
Xml material
 
Xslt
XsltXslt
Xslt
 
Xsd
XsdXsd
Xsd
 
Xml material
Xml materialXml material
Xml material
 
E13882== ORACLE SOA COOK BOOK
E13882== ORACLE SOA COOK BOOKE13882== ORACLE SOA COOK BOOK
E13882== ORACLE SOA COOK BOOK
 
While R&D WITH ORACLE SOA
While R&D WITH ORACLE SOAWhile R&D WITH ORACLE SOA
While R&D WITH ORACLE SOA
 
Synch calling asynchadd
Synch calling asynchaddSynch calling asynchadd
Synch calling asynchadd
 
Stored procedure
Stored procedureStored procedure
Stored procedure
 
Mediator-ORACLE SOA
Mediator-ORACLE SOAMediator-ORACLE SOA
Mediator-ORACLE SOA
 
Manual device+settings ORACLE SOA
Manual device+settings ORACLE SOAManual device+settings ORACLE SOA
Manual device+settings ORACLE SOA
 
Jndicreation of database adapter
Jndicreation of database adapterJndicreation of database adapter
Jndicreation of database adapter
 
Humantask MAKE EASY DUDE
Humantask  MAKE EASY DUDEHumantask  MAKE EASY DUDE
Humantask MAKE EASY DUDE
 
File2db
File2dbFile2db
File2db
 
Exceptionhandling4remote fault
Exceptionhandling4remote faultExceptionhandling4remote fault
Exceptionhandling4remote fault
 
Dvm
DvmDvm
Dvm
 
whileloop
whileloopwhileloop
whileloop
 
Compensation
CompensationCompensation
Compensation
 
Bam
BamBam
Bam
 
Database adapter
Database adapterDatabase adapter
Database adapter
 

Recently uploaded

Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
AI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website CreatorAI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website Creator
Google
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 

Recently uploaded (20)

Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
AI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website CreatorAI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website Creator
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 

java

  • 2. Weblogic- WLST-SCRIPTING What is WLST ? WebLogic Scripting tool. This was introduced in weblogic 9.2 . Prior to this weblogic.Admin java utility was used extensively for command line administration of weblogic. WLST uses Jython as scripting language. Jython is pure java based implementation of Python. Invoking the WLST script: Java weblogic.WLST Or $WL_HOME/common/bin/wlst.sh This script will internally invoke the previous command java weblogic.WLST. NOTE: make sure you are sourcing the environment before executing the WLST. # . $DOMAIN_HOME/bin/setDomainEnv.sh # ( dot space script location) How WLST works ? It works through JMX ( Java Management Extension). The API to managed the Mbeans ( Management Beans) Two modes of WLST Online : this is when connected to a running admin/managed server Used to browse through the runtime Mbeans of the weblogic Can change security configuration of the domain Query the runtime mbeans Offline : When not connected to running weblogic. Creation of domain and changing the configuration
  • 3. Weblogic- WLST-SCRIPTING Can not change security configuration in this mode… Template based domain creation. WLST Basics: Total Domain is divided into various Tree line verticals. domainConfig() serverConfig() domainRuntime() serverRuntime() Edit() Online Online Online Online Online Similar to the configuration information, WebLogic Server runtime MBeans are arranged in a hierarchical data structure. When connected to an Administration Server, you access the runtime MBean hierarchy by entering the serverRuntime or the domainRuntime command. The serverRuntime command places WLST at the root of the server runtime management objects, ServerRuntimeMBean; the domainRuntime command, at the root of the domain-wide runtime management objects, DomainRuntimeMBean. When connected to a Managed Server, the root of the runtime MBeans is ServerRuntimeMBean. The domain runtime MBean hierarchy exists on the Administration Server only; you cannot use the domainRuntime command when connected to a Managed Server. serverRuntime() & domainRuntime() are read-only trees. These two trees are run-time related trees. With in each tree you can browser through Domain Mbean – (root) | ---- Mbean Type ( ServerMBean) |-- Mbean Instance ( wl_mng1) |-- Mbean attributes & Operations ( port no, listen address, start/stop)
  • 4. Weblogic- WLST-SCRIPTING |-- Mbean Instance ( wl_mng2) |--Mbean attributes & Operations Types of using WLST : 1) Interactive ( browsing through the Mbean structure) cd() ls() help(‘command-name’) cd(configuration-tree-name) ls() directories are the Mbeans ( start with dr) -r— files are attributes –r—x files are operations attributes can be changed using set & get commands. 2) Invoking a script from command line. The script should have an extension .py to be able to invoke from command line. $ Java weblogic.WLST –skipWLSModuleScanning ( run $DOMAIN_HOME/bin/setDomainEnv.sh before invoking WLST to setup the environment) Invoking WLST can be invoked in two ways. 1) $WL_HOME/common/bin/Wlst.sh connect() java weblogic.WLST -skipWLSModuleScanning wlst-application-status.py localhost:10001 weblogic weblogic
  • 5. Weblogic- WLST-SCRIPTING Redirection of output : redirect(outputFile,[toStdOut]) stopRedirect() CMO. – current management object After cd(), u can get the properties by calling cmo.operation creating a domain template readDomain('/home/durgasoft/domains/DurgaSoft_Dmn') writeTemplate('/home/durgasoft/mytemplate.jar') closeDomain()
  • 6. Weblogic- WLST-SCRIPTING createDomain('/home/durgasoft/mytemplate.jar','/home/durgasoft/domains/new- domain','wlsadmin','wlsadmin') otherway is to use this template with config.sh script…2nd step alternative way is configToScript(‘domain-directory’,’location-for-scripts’) dumpVariables() dumpStack() after ls() there will be both properties & Operations Properties will not have x ( -r---). where as operations will have –r-x To acquire a lock and edit the configuration of the domain edit() startEdit() save() activate(block=”true”)  import X imports the module X, and creates a reference to that module in the current namespace. Or in other words, after you’ve run this statement, you can use X.name to refer to things defined in module X.  from X import * imports the module X, and creates references in the current namespace to all public objects defined by that module (that is, everything that doesn’t have a name starting with “_”). Or in other words, after you’ve run this statement, you can simply use a plain name to refer to things defined in module X. But X itself is not defined, so X.name doesn’t work. And if name was already defined, it is replaced by the new version. And if name in X is changed to point to some other object, your module won’t notice.  from X import a, b, c imports the module X, and creates references in the current namespace to the given objects. Or in other words, you can now usea and b and c in your program.
  • 7. Weblogic- WLST-SCRIPTING  Finally, X = __import__(‘X’) works like import X, with the difference that you 1) pass the module name as a string, and 2) explicitly assign it to a variable in your current namespac Prompt() sys.ps1="myprompt>" cmo- is current management object. You can use get or set methods to retrive/assign properties to the current management object using this. scripts 1) Script to Check the Status of All the deployed Applications Wlst-application-status.py How to Invoke : java weblogic.WLST –skipWLSModuleScanning wlst- application-status.py #This wlst script give the status of the deployed applications import os import sys username='weblogic' password='weblogic' url='t3://localhost:7001' connect(username, password, url) print ' Application Deployed ' cd("AppDeployments") app = ls(returnMap='true') domainRuntime() cd("AppRuntimeStateRuntime/AppRuntimeStateRuntime") i=1 for appName in app: appState = cmo.getIntendedState(appName, "mycluster") print appName + '' + '==>' + appState i=i+1
  • 8. Weblogic- WLST-SCRIPTING 2) Script for resetting administrator’s password for a weblogic domain wlst-admin-password-change.py How to Invoke : java weblogic.WLST –skipWLSModuleScanning wlst-admin- password-change.py DomainName = "mydomain" ADMINUrl = "t3://localhost:7001" ADMINuser = "weblogic" oldPassword = "weblogic" newPassword = "weblogicadmin" print ' ---- Changing the Administration Password ------- ' print ' ' connect(ADMINuser,oldPassword,ADMINUrl) cd('/SecurityConfiguration/'+DomainName+'/Realms/myrealm/AuthenticationProviders /DefaultAuthenticator') cmo.resetUserPassword(ADMINuser,newPassword) print ' ---- Weblogic Admin Password Reset Completed Successfully --- ' print ' ' disconnect() print ' ' print ' --- Testing with the new Credentials --- ' print ' ' connect(ADMINuser,newPassword,ADMINUrl) print '--- Testing with the new Credentials Completed Successfully ---'
  • 9. Weblogic- WLST-SCRIPTING print ' ' disconnect() 3) Cluster Creation ( cluster_creation.py) How to Invoke : java weblogic.WLST –skipWLSModuleScanning cluster_creation.py DurgaSoft# cat cluster_creation.py # This example script: # * connects WLST to the Admin Examples Server # * starts an edit session # * creates 10 managed servers. # * It creates 2 clusters and assigns the servers to the respective clusters. from java.util import * from javax.management import * import javax.management.Attribute print 'starting the script ....' username = 'weblogic' password = 'weblogic' 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}
  • 10. Weblogic- WLST-SCRIPTING connect(username,password,'t3://localhost:7001') clustHM = HashMap() edit() startEdit() for c in clusters: print 'creating cluster '+c clu = create(c,'Cluster') clustHM.put(c,clu) cd('....') clus1 = clustHM.get(clusters[0]) clus2 = clustHM.get(clusters[1]) for m, lp in ms1.items(): managedServer = create(m,'Server') print 'creating managed server '+m managedServer.setListenPort(lp) managedServer.setCluster(clus1) for m1, lp1 in ms2.items(): managedServer = create(m1,'Server')
  • 11. Weblogic- WLST-SCRIPTING print 'creating managed server '+m1 managedServer.setListenPort(lp1) managedServer.setCluster(clus2) save() activate(block="true") disconnect() 4) Cluster Deletion Script ( cluster_deletion.py) How to invoke it : java weblogic.WLST –skipWLSModuleScanning cluster_deletion.py DurgaSoft# cat cluster_deletion.py # This example script corresponds to the cluster_creation.py script: # * connects WLST to the Admin Examples Server # * starts an edit session # * For each cluster created in cluster_creation.py, it deletes the # * managed servers and the migratabletargets. # * Lastly, it deletes the clusters. print 'starting the script ....' username = 'weblogic' password = 'weblogic' clusters = 'cluster1','cluster2' ms1 = {'managed1':7701,'managed2':7702,'managed3':7703, 'managed4':7704, 'managed5':7705} ms2 = {'managed6':7706,'managed7':7707,'managed8':7708, 'managed9':7709,
  • 12. Weblogic- WLST-SCRIPTING 'managed10':7710} connect(username,password,'t3://localhost:7001') edit() startEdit() s = " (migratable)" for m, lp in ms1.items(): print 'deleting managed server '+m serverMBean = getMBean("Servers/"+m) serverMBean.setCluster(None) managedServer = delete(m,'Server') for m1, lp1 in ms2.items(): print 'deleting managed server '+m1 serverMBean = getMBean("Servers/"+m1) serverMBean.setCluster(None) managedServer = delete(m1,'Server') for c in clusters: print 'deleting cluster '+c clu = delete(c,'Cluster')
  • 13. Weblogic- WLST-SCRIPTING save() activate(block="true") print 'Saved Changes ...' print 'End of script ...' disconnect() 5) Script to create JMS Resources ( configJMSSystemResource.py ) How to Invoke the script : # java weblogic.WLST –skipWLSModuleScanning configJMSSystemResource.py DurgaSoft# cat configJMSSystemResource.py """ This script starts an edit session, creates two different JMS Servers, targets the jms servers to the server WLST is connected to and creates jms topics, jms queues and jms templates in a JMS System module. The jms queues and topics are targeted using sub-deployments. """ import sys from java.lang import System print "Starting the script ..."
  • 14. Weblogic- WLST-SCRIPTING connect('weblogic','weblogic','t3://localhost:7001') edit() startEdit() servermb=getMBean("Servers/examplesServer") if servermb is None: print 'Value is Null' else: jmsserver1mb = create('MyJMSServer1','JMSServer') jmsserver1mb.addTarget(servermb) jmsserver2mb = create('MyJMSServer2','JMSServer') jmsserver2mb.addTarget(servermb) jmsMySystemResource = create("myJmsSystemResource","JMSSystemResource") jmsMySystemResource.addTarget(servermb) subDep1mb = jmsMySystemResource.createSubDeployment('DeployToJMSServer1') subDep1mb.addTarget(jmsserver1mb) subDep2mb = jmsMySystemResource.createSubDeployment('DeployToJMSServer2') subDep2mb.addTarget(jmsserver2mb) theJMSResource = jmsMySystemResource.getJMSResource() connfact1 = theJMSResource.createConnectionFactory('MyCF1')
  • 15. Weblogic- WLST-SCRIPTING connfact1.setJNDIName('jms.MyCF1') connfact1.setSubDeploymentName('DeployToJMSServer1') connfact2 = theJMSResource.createConnectionFactory('MyCF2') connfact2.setJNDIName('jms.MyCF2') connfact2.setSubDeploymentName('DeployToJMSServer2') print "Creating MyQueue1..." jmsqueue1 = theJMSResource.createQueue('MyQueue1') jmsqueue1.setJNDIName('jms.MyJMSQueue1') jmsqueue1.setSubDeploymentName('DeployToJMSServer1') print "Creating MyQueue2..." jmsqueue2 = theJMSResource.createQueue('MyQueue2') jmsqueue2.setJNDIName('jms.MyJMSQueue2') jmsqueue2.setSubDeploymentName('DeployToJMSServer2') print "Creating MyTopic1..." jmstopic1 = theJMSResource.createTopic("MyTopic1") jmstopic1.setJNDIName('jms.MyJMSTopic1') jmstopic1.setSubDeploymentName('DeployToJMSServer1') print "Creating MyTopic2..." jmstopic2 = theJMSResource.createTopic("MyTopic2") jmstopic2.setJNDIName('jms.MyJMSTopic2') jmstopic2.setSubDeploymentName('DeployToJMSServer2')
  • 16. Weblogic- WLST-SCRIPTING print "Creating MyJMSTemplate..." jmstemplate = theJMSResource.createTemplate('MyJMSTemplate') jmstemplate.setMaximumMessageSize(20) try: save() activate(block="true") print "script returns SUCCESS" except: print "Error while trying to save and/or activate!!!" dumpStack() 6) Deleting the JMS Resources (deleteJMSSystemResource.py) How to Invoke the Script: #java weblogic.WLST –skipWLSModuleScanning deleteJMSSystemResource.py DurgaSoft# cat deleteJMSSystemResource.py # This example script connects WLST to the Admin Examples Server # * starts an edit session # * removes a JMS system resource module. import sys from java.lang import System
  • 17. Weblogic- WLST-SCRIPTING print 'starting the script ....' connect('weblogic','weblogic','t3://localhost:7001') edit() startEdit() jmsMySystemResource = delete("myJmsSystemResource","JMSSystemResource") jmsMyServer1 = delete("MyJMSServer1","JMSServer") jmsMyServer2 = delete("MyJMSServer2","JMSServer") save() activate(block="true") print 'System Resource removed ...' disconnect() 7) Script to create JDBC resources (jdbc_data_source_creation.py) How to Invoke : # java weblogic.WLST –skipWLSModuleScanning jdbc_data_source_creation.py DurgaSoft# cat jdbc_data_source_creation.py """ This script configures a JDBC data source as a System Module and deploys it to the server """ connect("weblogic","weblogic") edit()
  • 18. Weblogic- WLST-SCRIPTING # Change these names as necessary dsname="myJDBCDataSource" server="examplesServer" cd("Servers/"+server) target=cmo cd("../..") startEdit() # start creation print 'Creating JDBCSystemResource with name '+dsname jdbcSR = create(dsname,"JDBCSystemResource") theJDBCResource = jdbcSR.getJDBCResource() theJDBCResource.setName("myJDBCDataSource") connectionPoolParams = theJDBCResource.getJDBCConnectionPoolParams() connectionPoolParams.setConnectionReserveTimeoutSeconds(25) connectionPoolParams.setMaxCapacity(100) connectionPoolParams.setTestTableName("SYSTABLES") dsParams = theJDBCResource.getJDBCDataSourceParams() dsParams.addJNDIName("ds.myJDBCDataSource") driverParams = theJDBCResource.getJDBCDriverParams() driverParams.setUrl("jdbc:pointbase:server://localhost/demo") driverParams.setDriverName("com.pointbase.xa.xaDataSource") # driverParams.setUrl("jdbc:oracle:thin:@my-oracle-server:my-oracle-server-port:my-
  • 19. Weblogic- WLST-SCRIPTING oracle-sid") # driverParams.setDriverName("oracle.jdbc.driver.OracleDriver") driverParams.setPassword("examples") # driverParams.setLoginDelaySeconds(60) driverProperties = driverParams.getProperties() proper = driverProperties.createProperty("user") #proper.setName("user") proper.setValue("examples") proper1 = driverProperties.createProperty("DatabaseName") #proper1.setName("DatabaseName") proper1.setValue("jdbc:pointbase:server://localhost/demo") jdbcSR.addTarget(target) save() activate(block="true") print 'Done configuring the data source' 8) deletion of datasources (jdbc_data_source_deletion.py) How to Invoke It: # java weblogic.WLST –skipWLSModuleScanning jdbc_data_source_deletion.py
  • 20. Weblogic- WLST-SCRIPTING DurgaSoft# cat jdbc_data_source_deletion.py print 'starting the script ....' username = 'weblogic' password = 'weblogic' connect(username,password,'t3://localhost:7001') edit() startEdit() delete('myJDBCDataSource','JDBCSystemResource') save() activate(block="true") Finding MBeans and Attributes To locate a particular MBean and attribute, you use the find command. WLST returns the pathname to the MBean that stores the attribute and its value. You can use the getMBean command to return the MBean specified by the path. For more information, see find and getMBean. For example: wls:/mydomain/edit !> find('logfilename') searching ... /ApplicationRuntimes/myserver_wlnav.war/WebAppComponentRuntime/myserver _myserver_wlnav.war_wlnav_/wlnavLogFilename null /Servers/myserver JDBCLogFileName jdbc.log /Servers/myserver/WebServer/myserver LogFileName access.log wls:/mydomain/edit !> bean=getMBean('Servers/myserver/WebServer/myserver') wls:/mydomain/edit !> print bean [MBeanServerInvocationHandler]mydomain:Name=myserver,Type=WebServer,Ser ver=myserver wls:/mydomain/edit !>
  • 21. Weblogic- WLST-SCRIPTING Note: getMBean does not throw an exception when an instance is not found. Alternatively, the getPath command returns the MBean path for a specified MBean instance or ObjectName for the MBean in the current MBean hierarchy. See getPath. wls:/mydomain/serverConfig>path=getPath('com.bea:Name=myserver,Type=Ser ver') wls:/mydomain/serverConfig> print path Servers/myserver