To my knowledge, m.flush() guarantees that the database commit happens before 
the method returns (or else it will throw an exception).
I can't understand why you inject an EntityManagerFactory instead of an 
EntityManager.
What is the purpose of afterCompletion()? And why is the bean stateful and not 
stateless? I don't see any state variables that would warrant a stateful bean.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002777
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to