Hi, I have an "outer" method that calls an "inner" method. Both use the same
DAO class. I have annotated the inner method with *REQUIRES_NEW*. The inner
method throws an exception to the outer method, e.g. if some unique key
conflict happens inside the inner method. 

I expect the inner method to get his own transaction, so the exception there
should not be of any influence on the outer method. The outer method catches
the exception from the inner method, so the outer method is not interrupted,
and continues after the call to inner. 

However, my database log shows that only one db transaction is being used,
meaning that inner works in the same as outer. When inner throws an
exception, the effects of outer are rolled back, and that should not happen
imho.

Why is there not a second transaction created for inner?  Anyone got the
same problem, and solved it? 





--
View this message in context: 
http://openejb.979440.n4.nabble.com/handling-new-transaction-inside-transaction-does-not-work-tp4660716.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to