Change Hostname in JDBC Datasource Programaticly


   Is it possible to update the hostname in the JDBC string of a saved datasource?  Our DWH has a failover node.  But it does not failover sessions and has a different IP.  Given I have the IP, can I update the datasource definition directly in the Postgres repository? Or some config file in the web app?  Essentially, pointing to the new active node WITHOUT going thru the UI.  If possible, would the app have to be restarted?  Or, would it just use the new connection string on the next access of that datasource?



AThompson_1's picture
Joined: Nov 12 2015 - 3:24pm
Last seen: 4 years 2 months ago

1 Answer:

You may be able to do what you want using attributes in datasource.

hozawa's picture
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 5 months ago