tomcat-users mailing list archives

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

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:randy.paries@unitnet.com]
>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: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message