Hi,

I am trying to delete an entity from a collection. For some reason I get the 
following error:
 Illegal attempt to associate a collection with two open sessions.

I have browsed the Hibernate, this EJB3 mailing list as well as Googled, but 
have not found anything helpful.


How can I find out which sessions are open ? I am running a Seam application 
with an Entity Manager injected with :

@In(create = true, value = "napEntityManager")
  |     EntityManager em;

I have Entities in my stateful bean that were created elsewhere (in another 
stateful bean) using 
 @PersistenceContext(type=PersistenceContextType.EXTENDED)
  |      private EntityManager em;
which is injected by Seam e.g: 

        @In(required = false, scope=ScopeType.SESSION)
  |     private PortalUser portalUser;

Could that be the second session that is open ?
Any suggestions to trace this would be appreciated.

Thanks

Louis


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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to