[jboss-user] [JBoss Seam] - Re: Manual Flush Mode for Removing detail records

CptnKirk do-not-reply at jboss.com
Mon Apr 16 14:05:39 EDT 2007


You appear to be using an EJB3 SFSB and a JPA extended persistence context.  Only Hibernate supports a manual flush mode.  What I'd assume is happening here is that your @Begin(flushMode=...) declaration is being ignored  and that EJB3 is defaulting to its standard transaction/flush demarcation.

Instead of using a JPA extended persistence context, try using a Seam managed persistence context instead.  Either that or use the em.getDelegate() method, perform operations on a Hibernate Session, and manage the flushmode and flushing within your application.

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

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



More information about the jboss-user mailing list