[jboss-user] [JBoss Seam] - Re: Seam 1.3.0.ALPHA entity converter: The instance was not
hstang
do-not-reply at jboss.com
Fri Jul 20 15:22:41 EDT 2007
"billdurrell at hotmail.com" wrote : I have the same issue . Should I inject the EntityManager with @In or use
|
| EntityManager entityManager=(EntityManager) Component.getInstance ("entityManager");
|
| Which also works for me. What is the side effect of using both approaches ?
|
The EM you receive from @PersistenceContext is container-managed whereas the EM from Component.getInstance() is Seam-managed scoped to the conversation context.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066315#4066315
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066315
More information about the jboss-user
mailing list