[jboss-user] [JBoss Seam] - Re: What is the difference between EJB and POJO transactions

christian.bauer@jboss.com do-not-reply at jboss.com
Sun Apr 22 15:50:56 EDT 2007


It's not the default behavior. The default behavior is to flush a persistence context (translation: dirty check objects, generate and execute SQL DML) when a transaction commits. 

If you use Hibernate as your JPA provider, you can enable FlushModeType.MANUAL when you begin a conversation, so that the persistence context bound to that conversation is only flushed when you call entityManager.flush().

Please also read the Seam documentation, I'm basically quoting verbatim.


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

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



More information about the jboss-user mailing list