tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Donaghy <micha...@michaeldonaghy.com>
Subject Re: Tomcat4.0.2 & MySQL Connection Pools
Date Tue, 19 Feb 2002 05:20:24 GMT
For those that might have the same question as I did, the answer goes
something like this:

  You store the datasource as a javax.sql.PooledConnection.  You then
     con = ds.getPooledConnection().getConnection();
     ...regular connection SQL stuff here
     con.close();  <-- returns it to the pool

Michael

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message