I have a Spring MVC webapp running on Tomcat container. The datasource configuration is like the following, in context.xml
<Resource factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
name="jdbc/myDataSource"
type="javax.sql.DataSource"
.....
url="jdbc:postgresql://myDatabase:xxxx/dbname" />
myDatabase is a name resolved by DNS, it's not the ip address.
Now, suppose that there is a change on DNS side so myDatabase points to a new ip address, is this change transparent to Tomcat, or I need to restart it? In this last case, there is any automation that can be implemented in order to automatically update the connection?
Thanks!