wood burning stoves
The moose likes BEA/Weblogic and the fly likes How to change jdbc password dynamically? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to change jdbc password dynamically?" Watch "How to change jdbc password dynamically?" New topic

How to change jdbc password dynamically?

ubri fra

Joined: May 09, 2013
Posts: 1
Hi, I need to find a way to change the jdbc password dynamically every quarter and at runtime without lost active connection already in the pool (obviously without restert services, JVM).

Thanks a lots.
Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 255

You can change it via wlst like below but I don't think WITHOUT server restart all changes will take effect. Dynamic changes usually dont need a restart but if its an non-dynamic then yes you have to restart

cd('JDBCSystemResources/JDBC Data Source-0/JDBCResource/JDBC DataSource-0/JDBCDriverParams/JDBC Data Source-0')
Activating all your changes, this may take a while ... The edit lock associated with this edit session is released once the activation is completed.

If you get any non-dynamic ds entries password changed then you must restart the server to make this effective.

Regards, Ricky
Oracle Weblogic 10g Certified Expert TechPaste.Com
I agree. Here's the link: http://aspose.com/file-tools
subject: How to change jdbc password dynamically?
It's not a secret anymore!