Results 1 to 4 of 4

Thread: logging with org.apache.commons.dbcp.BasicDataSource

  1. #1

    Default logging with org.apache.commons.dbcp.BasicDataSource

    Hello,

    Does anyone know how I get connection pool info in my log file (log4j)? I'm using apache dbcp Basic DataSource and I'm interested in seeing the pool size and when/if a connection is returned to the pool.

    cheers.

  2. #2

    Default

    Anyone have a suggestion ?

    cheers

  3. #3

    Default

    Looking for some help with this again...

  4. #4
    Join Date
    May 2007
    Location
    Saint Petersburg, Russian Federation
    Posts
    1,189

    Default

    You can look through dbcp and commons-pool source and check that they don't use logging. The only you can do is to use standard jdbc logging facilities via BasicDataSource.setLogWriter() and implement a custom wrapper that is able to provide you current pool state (like the one mentioned here).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •