[jboss-user] [JBoss Seam] - Re: Seam-managed persistence context
wschwendt
do-not-reply at jboss.com
Tue Sep 18 18:05:23 EDT 2007
"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
More information about the jboss-user
mailing list