[jboss-user] [JBoss Seam] - Re: Exception:Transaction is not active

pete.muir@jboss.org do-not-reply at jboss.com
Tue Oct 23 08:26:59 EDT 2007


@Transaction is for use with Seam managed POJOs - so if you are using them, annotate the method.

anonymous wrote : I change that save() method to rollback transaction to prevent above problem, but it throws this exception:
  | 
  | java.lang.IllegalStateException: Illegal to call this method from injected, managed EntityManager
  | 
  | what is wrong with this?

Thats not how you control a CMT.  Read a book or some docs on the net about how to control CMT in EJB3.

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

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



More information about the jboss-user mailing list