Hi,
Yes, there are ways.  Two general approaches:
- Using JMX (not very convenient at the moment, but doable if you're
willing to write some code)
- By casting the DataSource you get from the JNDI lookup to the
implementation type, e.g. org.apache.commons.dbcp.BasicDataSource or
whatever, and then calling the specific methods provides by the
implementation class.  You'll find that DBCP and other connection
pooling providers give you all these methods you're asking for.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Randy Paries [mailto:[EMAIL PROTECTED]
>Sent: Monday, August 09, 2004 2:37 PM
>To: 'Tomcat Users List'
>Subject: JNDI question
>
>Hello
>
>I am using Tomcat 5 with JNDI(mysql)
>
>Are there ways to get usages info from the POOL
>
>Like active connections, max connections (basically the state of the DB
>Pool)
>
>Thanks for any help
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to