if you have the following in components.xml
<core:managed-persistence-context name="entityManager"
| auto-create="true"
|
persistence-unit-jndi-name="java:/TestEntityManagerFactory"/>
you can use
@In(create=true)
| private EntityManager entityManager;
But one question. Why you have managed-bean stuff in faces-config.xml?
This should be handelt from your annotations in your bean, I think!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059519#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...