commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <>
Subject Re: [commons-dbutils] DBUtils.close and threading issues.
Date Sun, 11 Sep 2005 00:58:38 GMT

DbUtils.close() is thread safe because it does not modify any shared
resources in the DbUtils class.  Your usage of DbUtils.close() may not be
thread safe though.

I doubt the problem has anything to do with thread safety.  I'm not sure
about SQL Server but, in Oracle, deadlocks (aka. blocked locks) occur when
two processes try to update the same rows at the same time.


--- Muhammad Mansoor <> wrote:

> Hi,
> Currently we are load testing our application, we are using 
> common-dbutils  QueryRunner to handle database realated activity from 
> SQL Server. Some how when we load test the application using 15+ User. 
> Following messages are shown instack trace :
> ---------
> XX was deadlocked on lock resources with another process and has been 
> chosen as the deadlock victim. Rerun the transaction.
> ---------
> My question is that is commons-dbutils's DBUtils.close() methods are 
> thread safe or not. I hand looked at the API Documentation, will be 
> looking at it soon. But if someone car reply me a quick one ???.
> Thanks!

Get Firefox!

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message