"wschwendt" wrote : 
  |  So far my understanding is that a Seam-managed persistence context 
corresponds to an instance of the 
org.jboss.seam.persistence.ManagedPersistenceContext component.   This is a 
conversation-scoped component,  hence it can be injected into other components 
using the @In annotation.
  | 

I don't like my previous wording here and want to correct it.  While it's true 
that a Seam-managed persistence context corresponds to an instance of  
org.jboss.seam.persistence.ManagedPersistenceContext component,  it's not true 
that an instance of ManagedPersistenceContext is injected into other components 
when there is an annotation such as @In EntityManager entityManager.   Rather, 
the ManagedPersistenceContext acts a manager component for an EntityManager;    
the method ManagedPersistenceContext.getEntityManager() is annotated with 
@Unwrap.   It is the return value of the  @Unwrap method that gets injected 
when a ManagedPersistenceContext component is referenced.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085773
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to