Ejemplo n.º 1
0
 public String getCurrentStatus() throws Exception {
   try {
     getResultSet();
     info = null;
     return STATUS_ALIVE;
   } catch (Throwable ex) {
     info = ex.getMessage();
     return STATUS_DEAD;
   } finally {
     try {
       conn.close();
     } catch (Exception ex) {
       // do nothing
     }
   }
 }