Reputation: 83
Upvotes: 0
Views: 4651
Reputation: 1
Update data account password
connect('weblogic', 'password', 't3://%s:%s' % ('localhost','7001'))
edit()
startEdit()
cd('/')
cd('JDBCSystemResources/dbname/JDBCResource/dbname/JDBCDriverParams/dbname/Properties/dbname/Properties/user')
cmo.setValue('ESB')
cd('/')
cd('JDBCSystemResources/dbname/JDBCResource/dbname/JDBCDriverParams/dbname')
cmo.setPassword('ESB')
cd('/')
save()
activate(block='true')
disconnect()
exit()
Upvotes: 0
Reputation: 409
You cannot modify datasources in your web.xml. JDBC is a weblogic feature. That being said, you can change the datasource info using WLST.
An example of the process is mentioned here. https://docs.oracle.com/cd/E17904_01/web.1111/e13737/config.htm#JDBCA134
You can get creative with this process and create and destroy JDBC's based on environment as well.
So long answer short, WLST is the solution.
Upvotes: 1