2 Replies Latest reply on Mar 20, 2003 4:29 AM by Per Steffensen

    How to rollback a transaction

    Erik Turesson Novice


      What is the correct way to rollback a transaction in JBoss 3 and CMP 2.0?

      I have searched the forum and found several suggestions.
      One is to throw an Exception that inherits from RemoteException or RuntimeException. An other is to set the setRollBack flag in the entitycontext.

      What is the correct way to do it?