|
From: Juergen H. <ju...@in...> - 2005-10-29 14:12:20
|
Hi Andy, I do not expect this behavior to change between different Spring versions. The problem rather lies in the semantics of JOTM's "TransactionManager.resume()" operation, which does seem to throw an exception if the transaction to resume has already been marked for rollback. Unfortunately, the JTA spec is not clear on how that operation should behave in such a case; as a consequence, JTA providers differ in that respect. As Thomas says, we know that issue from WebLogic, where the JTA "TransactionManager.resume()" operation has the same semantics. WebLogic provides a separate "forceResume()" operation (on its extended TransactionManager interface) that will also resume a transaction that has already been marked for rollback. We simply provide a special WebLogicJtaTransactionManager now (a subclass of our standard JtaTransactionManager), calling WebLogic's "forceResume()" and also providing a couple of WebLogic-specific extensions. This works nicely on both WebLogic 8.1+ and 7.0 now. I guess we will have to provide such a special JtaTransactionManager for JOTM as well then. However, it's not clear to me what such a special JotmJtaTransactionManager would have to do to enforce a resume. There doesn't seem to be a "forceResume"-style method anywhere in the JOTM API. It might be worthwhile to check out Jonas's usage of JOTM: The Jonas EJB container essentially has the same requirement, needing to enforce a resume of a transaction. I would appreciate any help in finding out how to achieve this. Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of Andy Depue Sent: Saturday, October 29, 2005 12:23 AM To: spr...@li... Subject: Re: [Springframework-developer] Bug in suspend/resume of rolled back transaction wih JOTM? I should note that I've just tested this against Spring 1.2.5, which does not change the result in any way. - Andy On Friday 28 October 2005 01:32 pm, Andy Depue wrote: > I've run into a problem with Spring and JOTM concerning suspending and > later resuming a rolled back JOTM transaction. I'm not certain yet if > the problem lies in JOTM, Spring, or my usage of Spring. I've created > a test that reproduces the problem. See this thread in the forums for > full detail, including the test and related files: > http://forum.springframework.org/showthread.php?t=19263 > I'm using Spring v 1.2.4 and JOTM v. 2.0.10. > Should I create a new JIRA issue, or is this just me not using Spring > properly? > > - Andy > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course Free > Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |