See this

 Connection conn = null;
  try{
  conn = ds.getConnection();
 
  ...whatever you wish to do with conn..
  catch(SQLException sqle)
  {
    action of exception
  }
  finally{
        try{
            if(nul != conn) conn.close();
        }
        catch(SQLException sqle){ action of exception , may bejust ignore}
}

HTH
Navjot Singh

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to