tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: JNDI question
Date Mon, 09 Aug 2004 19:01:31 GMT

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 []
>Sent: Monday, August 09, 2004 2:37 PM
>To: 'Tomcat Users List'
>Subject: JNDI question
>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
>Thanks for any help
>To unsubscribe, e-mail:
>For additional commands, e-mail:

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:
For additional commands, e-mail:

View raw message