Hey, thanks for replying....Comments are in-lined. > -----Original Message----- > From: David Jencks [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 21, 2002 5:25 PM > To: Bill Burke > Cc: Jboss-Dev > Subject: Re: [JBoss-dev] Bug?: no rollback on tx timeout > > > OK, now I'm confused. Looking at (some of) the code I would think that: > > 1. If nothing is hanging, just taking a really long time, when it all gets > done the tx will be rolled back just fine, and all resources released. >
Yeah, that's not the problem though > 2. If the db call is hanging, the tx will be marked for rollback, > but since > the db call is waiting and waiting, nothing will ever be > released. I would > expect that calling rollback on the tx would have essentially no effect, > since the "active" thread is waiting for IO. I'm no threading expert, but > I can't find any way of communicating with the hung thread to force it to > return. > You have a point. Calling rollback from a different thread would just hang the TimeOut thread as well. Is that what you're saying? I'm pretty sure that in JDK 1.3.x, there is no way of interrupting a thread waiting for IO. I've tried it before without success. Can somebody back me up on that statement? Hmmmm so the real solution is release the EntityBean locks. How can I do this generically though? Bill _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
