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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...