Hi,

Jay SenSharma

Jay SenSharma

Many times we want to Change the Deployment Order of different dataSources according to our Requirement…sothat WebLogic Server will activate the DataSources and ConnectionPools according to the deployment Order which we have set.

In the following Demonstration we are going to achieve it using WLST script … Suppose if your DataSource Name is “TestDS” Then u can use the following WLST Script…

Step1). Open Text Editor and then Write the following WLST Script inside it:

ChangeDeploymentOrder.py

connect('weblogic','weblogic','t3://localhost:7001')
edit()
startEdit()
cd ('JDBCSystemResources')
cd ('TestDS')
ls()
print 'see the Value of DEPLOYMENT ORDER ...we are going to change it...to 50'
cmo.setDeploymentOrder(40)
ls()
print 'Can u see that it is changed...?'
save()
activate()
————————-ChangeDeploymentOrder.py—————————

Step2). Now open a Command prompt then run “. ./setWLSEnv.sh”

Step3). Run the WLST Script like following:

java weblogic.WLST     /app/wlstScripts/ChangeDeploymentOrder.py

.

.

Thanks

Jay SenSharma

If you enjoyed this post, please considerleaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.