[jboss-user] [JBoss Seam] - Re: SeamExtendedManagedPersistencePhaseListener ?

gavin.king@jboss.com do-not-reply at jboss.com
Mon Jun 18 14:56:48 EDT 2007


OK, thats definitely Bad.

You should always use @PersistenceContext inside a REQUIRES_NEW bean, and get a container-managed PC. 

The Seam-managed PC is associated with the outer (suspended) tx managed by Seam. You shouldn't associate it with a new one. Its only allowed to be associated with one transaction at a time.

I wish there was an easy way for me to detect cases like this, but its actually very difficult, because all I have is a UserTransaction, and no Transaction. 

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

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



More information about the jboss-user mailing list