Considering we have some ejb’s and their transaction settings are :
ejb1 starts doing work with the Requires_New attribute and calls ejb2 which has also requires new attribute on its side.
My question is…if ejb2’s transaction fails…will ejb1’s transaction fail too ? I suspect not.
Any answers are welcome.
Thx.
No, it won’t rollback if you catch the exception thrown by the call to ejb2.