[jboss-user] [EJB 3.0] - Re: Queries work, persist does not work, in a Servlet
SmokingAPipe
do-not-reply at jboss.com
Fri Dec 22 04:15:55 EST 2006
Ha, I figured this out. I need to do
EntityTransaction transaction = entityManager.getTransaction();
| transaction.begin();
| entityManager.persist(...);
| transaction.commit();
| entityManager.close();
Is that the right way to do it? It works!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995818#3995818
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995818
More information about the jboss-user
mailing list