You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Raul Acevedo <ra...@cantara.com> on 2007/10/25 00:10:42 UTC

debug logging for dbcp

Is there a way to get DBCP to output any kind of debugging information?
We have connections that are probably getting terminated by a firewall,
but we're trying to figure out exactly what's happening.  All we know
for certain is a call to getConnection() sometimes takes a really,
really long time (like 20 minutes) before finally returning with a valid
connection.

Raul


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Re: debug logging for dbcp

Posted by Billy Bacon <bi...@gmail.com>.
You should be able to use Log4j and specify the DBCP package you would like
to log in your log4j.properties file. Set the level for the
org.apache.commons.dbcp package to DEBUG and you should see everything (and
probably more than you want to see).

- Billy -

On 10/24/07, Raul Acevedo <ra...@cantara.com> wrote:
>
> Is there a way to get DBCP to output any kind of debugging information?
> We have connections that are probably getting terminated by a firewall,
> but we're trying to figure out exactly what's happening.  All we know
> for certain is a call to getConnection() sometimes takes a really,
> really long time (like 20 minutes) before finally returning with a valid
> connection.
>
> Raul
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>