Hi Cimballi, TransactionUtil.rollback(boolean beganTransaction, String causeMessage, Throwable causeThrowable) will be your friend here. On passing beganTrasaction value to tru it will rollback the current thread transactions.
Rishi Solanki Enterprise Software Developer HotWax Media Pvt. Ltd. On Thu, Nov 12, 2009 at 5:19 AM, Cimballi <[email protected]> wrote: > Hi, > > I have developed several custom services and I encounter a problem > with transactions. > My service is calling other services and I notice that when a first > service successed, but a second failed, the data of the first service > has not been rolled back. > Example : > - First, I call "createPersonAndUserLogin" using dispatcher.runSync > - Second, I call "createPartyRole" using dispatcher.runSync > > The second call failed because I didn't provide all parameters, but > the party created in the first call is still there. > > Is there a way to avoid this, to have a transaction covering all runSync > calls ? > > Thanks, > > Cimballi >
