Web Server - Connectivity Issue
Posted on 2005-04-11
I am connecting to a remote DB using the following code:
Context ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup("java:comp/env/jdbc/test");
Connection conn = ds.getConnection();
Statement stmt = conn.createStatement();
Server.xml is configured appropriately and everything is working fine.
I have an issue that if the DB Server is restarted for what ever reason, I need to restart Tomcat.
Is there any way of doing a DB restart without having to restart Tomcat???