Hi,
I am using ojb1.0_rc4, ODMG api with OJB queries, mysql4 in Linux Red Hat 7.3
(kernel 2.4.20-20.7).
I am experiencing the following problem: when multiple threads (about 20) try to
write lock an object, at some point, the transaction.lock(object,Transaction.WRITE)
method simply doesn't return and my thread never dies. This is causing my application
to deadlock. I am locking different objects in each thread.
I have tried the following <connection-pool> configurations in
repository_database.xml with no success:
<connection-pool maxActive="50" validationQuery="" whenExhaustedAction="1"
maxWait="4000"/>
<connection-pool maxActive="3" validationQuery="" whenExhaustedAction="2"
maxWait="4000"/>
Do you know why this is happening? The transaction.lock(..) method should throw an
exception if the object can't be locked, right? Any help would be appreciated.
Thanks,
Jair Jr