[jboss-user] [EJB 3.0] - Re: Stateful Bean and the database commit
alexg79
do-not-reply at jboss.com
Wed Jan 17 08:50:51 EST 2007
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
More information about the jboss-user
mailing list