1 Reply Latest reply on Jan 12, 2007 6:45 PM by Leo Baschy

    simulate a multi-page transaction or not ?

    Leo Baschy Novice

      In Yuan & Heute's book version 12/6/2006 in section 9.4 "Simulate a Multi-page Transaction" ...

      method confirm() is annotated @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) and contains a call em.flush().

      Per javax.persistence.EntityManager though for method flush() it @throws TransactionRequiredException if there is no transaction.

      You see that, TransactionAttributeType.NOT_SUPPORTED would trigger that @throws TransactionRequiredException if there is no transaction, right?

      Is section 9.4 speculation (as of 12/6/2006) or is anyone really using it? Any insights?