Newbie question
1 posts in topic
Flat View  Flat View

Posted By:   mark_pope
Posted On:   Monday, January 7, 2002 12:17 PM

I would like to use the JTA in a workflow scenerio. I have an Initiator EJB that calls various other EJBS. The first n-1 EJBs interact with external entities and the last EJB updates the database for the previous EJBS. If any of the EJBs fail I would like to call all previous EJBs that completed successfully and them them to rollback the changes they made to external entities.

Is this a typical application for JTA?

Re: Newbie question

Posted By:   Philipp_Meier  
Posted On:   Friday, February 8, 2002 04:29 AM

If you throw an exception in your EJB implementation the container rolls back the transaction. Or you get use transaction.setRollbackOnly() which will do the same.
About | Sitemap | Contact