• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to change jdbc password dynamically?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
Sterzo
 
Ranch Hand
Posts: 256
Netbeans IDE Firefox Browser Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

serverConfig()
edit()
cd('JDBCSystemResources/JDBC Data Source-0/JDBCResource/JDBC DataSource-0/JDBCDriverParams/JDBC Data Source-0')
startEdit()
cmo.setPassword('*****')
activate()
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic