2 Replies Latest reply on Nov 29, 2008 1:11 PM by Pedro Sena

    Injecting an EntityManger

    Code Warrior Newbie

      Hello! In a basic program that persist an user in a database and retrive later to make the login using the Authenticator class, how can i do it? When i try to inject the EntityManger with @In private EntityManager entityManager they out it in the Log:

      EntityManagerFactory not found in JNDI : java:/sistemaWebKitEntityManager/

      If i use @PersistenceContext they say that just Stateless Session Beans and MDB can use this annotation. The other files (faces, persistece, components) is OK.