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
@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
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
__
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
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=