struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navjot Singh" <navjo...@net4india.net>
Subject RE: Connection Pooling (How i use...)
Date Wed, 07 Apr 2004 04:13:08 GMT
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message