Justin's Blog

Changes to some WLST Commands in 12.2.1

Justin Paul
Senior Principal Consultant
I was working on a few scripts to create domains using WLST and I realized that some of the traditional WLST commands are deprecated starting WebLogic v12.2.1. Previously, to create a new domain, I would use a script similar to the snippet below.



# ... configure domain here ...


Starting 12.2.1, the readTemplate() and addTemplate() commands are deprecated and have been replaced with selectTemplate() and loadTemplates(). The selectTemplate() command is used to select a feature and loadTemplates will load all the templates required for that feature. To create a new domain using the new method, the script will now look similar to the snippet below.

selectTemplate("Basic WebLogic Server Domain", "12.2.1")


# ... configure domain here ...


You can read the Oracle Documentation about domain creation here: https://docs.oracle.com/middleware/1221/wls/WLSTG/domains.htm#WLSTG161.

The WLST Command and Variable reference can be found here: https://docs.oracle.com/middleware/1221/wls/WLSTC/reference.htm#WLSTC140.

You also do not have to manually pack and unpack to replicate the domain to your managed servers anymore. This can be accomplished by running the online WLST script provided here from the managed server: https://docs.oracle.com/middleware/1221/wls/WLSTG/domains.htm#WLSTG406.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.