commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Woodhead <adr...@last.fm>
Subject Re: [dbcp] Contention for DriverManager when initializing multiple datasources WAS: Re: dbcp blocked on webapp startup
Date Tue, 01 Jul 2008 12:56:24 GMT
Simon - thanks for your feedback, what you said makes sense...
>> The big question is: why are you running dbcp concurrently in two different
>> threads?
>>     
>
> Two data sources within the same webapp (spring config) perhaps?
>   
Exactly. There are 3 actually - 2 postgres databases and one mysql 
database, each has its own pooled datasource.

>> 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.
>   
It is. Should I file a bug? I'd be happy to try out a build with this 
fix in it to see if it helps.

Regards,

Adrian



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


Mime
View raw message