0 Replies Latest reply on Dec 2, 2008 8:52 AM by terryb

    Multiple atomic transactions in single conversation?

    terryb

      Is it possible to have multiple atomic transactions in a single Seam conversation, so that transactions already flushed with em.flush() will persist in database even if runtime exception is thrown before conversation complets?



      proc main() {
      
        Conversation.setFlushMode(Manual);
        proc A();  <--- mods here should persist even though exception thrown in B().
        proc B();
      
      }
      
      proc A() {
      
        update database...
        em.flush();
      
      }
      
      proc B() {
      
        update database...
       
        Runtime exception occurs here...
      
        em.flush();
      
      }