2 Replies Latest reply on Aug 13, 2010 2:07 PM by specialagent.specialagentx.web.de

    Rollback when conversation ends

    specialagent.specialagentx.web.de
      Hi,

      Im looking for a way to rollback the global/RESOURCE_LOCAL transaction when my conversation ends.

      In our project we have a wizard with several pages in an long running conversation. Everytime we leave the wizard the conversation ends and all modifications will be commited to DB. This is fine for the normal case. I need also a "Cancel wizard" funcationality, which NO changes will be commited to DB. So, Im just looking for a way to rollback the transaction.

      The only way I found in Seam is to throw a RuntimeException. But this wouldn't be really pretty and designful. I would assume, that an "rollback=true" attribute for @End annotation exists for this case.

      So, how are you canceling your wizards/conversations?

      Thank you.