I'm stuck with bean-managed-transactions because I'm using hibernate. And I'd like to simulate RequiresNew behavior in some code-- that is, I'd like to create an inner transaction whose success or failure doesn't affet the sucess or failure of the enveloping transaction.
But I can't figure out how to do this, because you can't nest UserTransactions.
Is this a well-known problem with BMT, or am I missing some easy fix?
Just invoke another bean with RequiresNew
or BMT. This will suspend your user transaction.
Be careful of self-deadlocks when starting inner