commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <ja...@carmanconsulting.com>
Subject Re: [dbcp] Contention for DriverManager when initializing multiple datasources WAS: Re: dbcp blocked on webapp startup
Date Tue, 01 Jul 2008 11:20:44 GMT
On Tue, Jul 1, 2008 at 7:16 AM, simon.kitching@chello.at
<simon.kitching@chello.at> wrote:

> The big question is: why are you running dbcp concurrently in two different
> threads?

Two data sources within the same webapp (spring config) perhaps?

> Possibly dbcp should call DriverManager.getDrivers() internally on startup
> to avoid this race...

If this would solve it, I'd say it's a must, then.  This is a really
nasty race condition.

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


Mime
View raw message