4

We use database connection pooling for our java application. It is a web app run under tomcat.

I want to view live connections in the pool as they are created and destroyed. Can somebody please help?

UPDATE: We are using Oracle 11g. We use DDConnectionBroker library for connection pooling.

demongolem
  • 9,474
  • 36
  • 90
  • 105
user32262
  • 8,660
  • 21
  • 64
  • 77

2 Answers2

0

I am not sure if there are any connection monitoring API's in DDConnectionBroker library... I would recommend Proxool if you want more transparency.

http://proxool.sourceforge.net/

Also check out DBCP and CP30, DBCP is the best in the bucket

http://www.java2s.com/Product/Java/Database/Connection-Pool.htm

Faheem
  • 3,429
  • 19
  • 26
0

I was searching for this issue too and could collect what I need from:

org.apache.commons.dbcp.BasicDataSource

If you are using Spring is so easy to inject this information on your bean and retreive what you need from this object, that shall came injected and already instantiated for you.

Any questions let me know!

rafa.ferreira
  • 1,997
  • 7
  • 26
  • 41