In our project, we have numerous steps to create different configurations on WebLogic server. I have created a local domain and I have recorded my steps in a Python file (by pressing 'Record' button on top, followed by manual steps to configure)
The configuration includes creation of Generic Data Source/s, security realms, changes to AdminServer and so on.
The purpose of recording the steps is obvious, to ease and speed up the process for others. I would like to know the steps on how I should run the recorded script? Shall I simply create a new domain, login to it and simply run the script? Or something else is also required?
Here's a snippet from .py file:
startEdit()
cd('/')
cmo.createJDBCSystemResource('test')
cd('/JDBCSystemResources/test/JDBCResource/test')
cmo.setName('test')
cd('/JDBCSystemResources/test/JDBCResource/test/JDBCDataSourceParams/test')
set('JNDINames',jarray.array([String('test')], String))
cd('/JDBCSystemResources/test/JDBCResource/test/JDBCDriverParams/test')
cmo.setUrl('jdbc:db2://server:port/DBNAME')
cmo.setDriverName('com.ibm.db2.jcc.DB2Driver')
.
.
I have referred to some questions: How to run wlst script by .py file, Record WLST Scripts for Adapter Settings for creating Outbound Connection Pools but those didn't help.