Saturday, August 16, 2014

Hidden Feature in Weblogic Admin Console - WLST recording

WLST is the core to what you can do in weblogic and it hasn't been a straight forward tool in terms of learning the MBEAN structure and automate managing all the services available in weblogic

Luckily the admin console provides recording capability which allows you record the commands that gets executed behind the scenes whilst you perform actions on the console. This gives a opportunity to reuse those scripts and understand the MBEAN structure so that we can parameterize the same to automatic the actions going forward.

Lets see how we can record the WLST commands from the admin console.


Now lets create a JDBC data source and see what happens behind the scenes.

Now the data source has been created. Now lets end the recording and check the content of the generated jython script.




The script contains the equivalent commands for all the actions that we did. Now we don't need to google to find how to automate WLST scripts... just record & learn :)


No comments:

Post a Comment