public Connection getDBConnection(String dbName) throws OracleConnException, Exception { |
Saturday, February 28, 2009
Complex investigation, easy solution
Yesterday I was facing one production issue where somehow at some time the connection to a database which is located at another server will be reset. I was getting java.lang.SqlException(io exception: connection resrt). I have reused a method that will reconnect to the database. I hope it works in the next deployment and i believe it should work. Code snippet as below:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment