-
1. Re: Using DB2 in JBoss causing lock problems
davidjencks Feb 6, 2002 6:04 PM (in response to 041946)deletes through jboss or db2 directly? What lock problems are causing it to hang? more details please. What jboss?
-
2. Re: Using DB2 in JBoss causing lock problems
041946 Feb 8, 2002 11:14 AM (in response to 041946)I am using JBoss 2.4.3 with Tomcat 3.2.3. My application runs agains jdk1.3 using DB2 7. the problems I am having are centered around the Minerva pool and are not restricted to deletes. It also happens with adds and updates to DB2. Even worse, it's intermittent. I am using the .app driver for DB2.
I pull a connection from Minerva, make a series of adds to DB2 and close the connection. Intermittently, the adds or deletes will either fail completely or only part of the total number of expected adds/deletes will complete. No error is produced in the JBoss black screen.
If I obtain my connections directly rather than use Minerva's pool of connections, the problem goes away completely. Seems to be a Minerva problem either with DB2 in general or it's driver. -
3. Re: Using DB2 in JBoss causing lock problems
davidjencks Feb 8, 2002 10:56 PM (in response to 041946)xa or local transactions?
One common gotcha is that jboss requires you to get your connections after the transaction has begun and close them before it ends. In particular, you can't hold onto connections over method boundaries. Common symptoms include data not getting saved and running out of connections.
If this isn't it... the jboss pools do prepared statement pooling also. Is it possible that db2 doesn't like its prepared statements reused in different transactions? (unlikely, but weirder things have happened).
You are using transaction tags so your work is in defined transactions, right?