2 Replies Latest reply on Oct 10, 2008 5:49 AM by Drew Kutchar

    FlushModeType in Conversation

    nimo stephan Master

      When I use this:



      @Begin (flushMode = FlushModeType.MANUAL )
      public void call(Object o)
      {
      this.o= o;
      log.info("entityManager.isOpen() #0", entityManager.isOpen());
      log.info("entityManager.getFlushMode() #0", entityManager.getFlushMode());
      }




      then my console prints:


      07:50:53,749 INFO  entityManager.isOpen() true
      07:50:53,749 INFO  entityManager.getFlushMode() AUTO



      Even the flushMode is set to Manual!?


      When I use javax.persistence.FlushModeType instead of


      import org.jboss.seam.annotations.FlushModeType and set the FlushMode-Type in the code:


      entityManager.setFlushMode(FlushModeType.COMMIT);
      log.info("entityManager.getFlushMode() #0", entityManager.getFlushMode());



      then it prints



      07:50:53,749 INFO  entityManager.isOpen() true
      07:50:53,749 INFO  entityManager.getFlushMode() COMMIT



      A little confuse..!