[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: No active transaction

PeterJ do-not-reply at jboss.com
Tue Oct 28 18:38:38 EDT 2008


I always use:

@PersistenceContext
  | private EntityManager em;

Then I do not have to call createEntityManager() within my code{

public void saveIt(SomeEntity se) {
  |   em.persist(se);
  | }

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

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



More information about the jboss-user mailing list