[jboss-user] [JBoss Seam] - Re: Access to EntityManager in authenticator?

2007-02-01 Thread mariuszs
You can also use @Stateless bean (simply add this annotation) and @PersistanContext can work. You need also interface for this bean. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009659#4009659 Reply to the post : http://www.jboss.com/index.html?module=bb&o

[jboss-user] [JBoss Seam] - Re: Access to EntityManager in authenticator?

2007-02-01 Thread [EMAIL PROTECTED]
@PersistenceContext only works in EJB3 components. Do you have a Seam-managed persistence context named "entityManager" configured in components.xml? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009640#4009640 Reply to the post : http://www.jboss.com/inde

[jboss-user] [JBoss Seam] - Re: Access to EntityManager in authenticator?

2007-02-01 Thread dustismo
Thanks much for the quick advice. setting auto-create="true" in components.xml | http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009620#4009620 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009620 __

[jboss-user] [JBoss Seam] - Re: Access to EntityManager in authenticator?

2007-02-01 Thread cavani
To use @In for EntityManager you have to set Seam managed Persistence: http://docs.jboss.com/seam/1.1.5.GA/reference/en/html/persistence.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009607#4009607 Reply to the post : http://www.jboss.com/index.html?mo

[jboss-user] [JBoss Seam] - Re: Access to EntityManager in authenticator?

2007-02-01 Thread dilator
That should work, is your entity manager actually called 'entityManager' in components.xml / persistence.xml? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009608#4009608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=