Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

DBCP Logging

news

2007-02-19

Replies:

Hello List,

I've configured DBCP on my Tomcat 5.5.20 Installation.
  <Resource name="jdbc/myDB"
        auth="Container"
        type="javax.sql.DataSource"
     maxActive="10"
      maxIdle="2"
      maxWait="10000"
      username="aUser"
      password="secret"
 driverClassName="com.sybase.jdbc3.jdbc.SybDriver"
      factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
         url="jdbc:sybase:Tds:194.111.13.30:5000/?charset=iso_1" />

This runs great and I'm really happy with it until it comes to logging
and/or monitoring.
What do I have to do if I want to know the state of the connection pool? How
can I see how many connections are currently in use? Or - more generally -
How can I set up logging for the pool?

Thanks!

Jan

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.