tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john-paul delaney ...@justatest.com>
Subject RE: OT: db pool problems - jdbc connection count?
Date Thu, 30 Oct 2003 23:30:29 GMT
Thanks Yoav... sorry it's a wee bit above my immediate understanding (e.g lookup my connection
pool by JNDI name - I could do with an example of what this means) plese be patient and point
me to a resource that will give me some lead to catch up with you.

regards
/j-p.


On Thu, 30 Oct 2003, Shapira, Yoav wrote:
> 
> Howdy,
> You can write a bit of code to do this:
> 
> - Create an InitialContext
> - Get the java:comp/env context
> - Lookup your connection pool by JNDI name
> - Cast your connection pool to the appropriate type as specified in your
> server.xml
> 
> Then you can call the implementation-specific method, e.g.
> getNumActive() / getNumIdle() for
> org.apache.commons.dbcp.BasicDataSource, to look at values.
> 
> Yoav Shapira
> Millennium ChemInformatics



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message