I have been unable to find the answer to what seems like a simple questions. How do you configure spring to manage transactions across service level methods? For example if I wanted to do something similar to :
serviceA.save();
if(condition == true)
serviceB.save();
As is configuration stands now the two service calls run in two separate transactions. Is there a way to run these within one transaction or is this simply bad design?
Cheers.


Reply With Quote