You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Steve A Drake <sa...@comet.ucar.edu> on 2001/01/30 01:05:07 UTC
2 Qs
Any struts gurus going to the O'Reilly Conference on Enterprise Java
(March 26-29)? I didn't see Struts on the schedule but that's not to say
someone couldn't lead an impromptu evening session.
I've got this Struts connection pool going but don't see how to snoop
info regarding it's state. For example, does anyone know how to get the
number of connections currently checked out from a connection pool? I
looked at the classes in the JDBC 2.0 Optional Package but didn't see
anything other than possibly implementing a connection event
listener =:| . Code examples, anyone? TIA.
Re: 2 Qs
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Steve A Drake wrote:
> Any struts gurus going to the O'Reilly Conference on Enterprise Java
> (March 26-29)? I didn't see Struts on the schedule but that's not to say
> someone couldn't lead an impromptu evening session.
>
I submitted a proposal to talk about web application architectures (i.e.
Struts), but it didn't make the program.
>
>
> I've got this Struts connection pool going but don't see how to snoop
> info regarding it's state. For example, does anyone know how to get the
> number of connections currently checked out from a connection pool? I
> looked at the classes in the JDBC 2.0 Optional Package but didn't see
> anything other than possibly implementing a connection event
> listener =:| . Code examples, anyone? TIA.
I don't think there is any standard API for this, but GenericDataSource
offers the getActiveCount() and getUseCount() methods to tell you how many
connections have been created, as well as how many are currently in use.
Craig