[jboss-user] [JBoss Seam] - simulate a multi-page transaction or not ?

codelion do-not-reply at jboss.com
Fri Jan 12 17:10:34 EST 2007


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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001131#4001131

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001131



More information about the jboss-user mailing list