2 Replies Latest reply on Sep 4, 2009 10:20 PM by Arbi Sookazian

    EntityManager not found in a session scoped component

    jeremy girard Newbie

      Hi all,
      I've got a session scoped synchronized component using an entity manager.


      The entity manager is insert via @in.
      the component is called by ajax.


      The first called is good but the next one trigger a exception because entitymanager is null.


      i tried inject entitymanager with


      @In(create=true, required=false)



      it now works fine but i have a warn log :


      Cannot create Seam component, scope is not active: entityManager(CONVERSATION)


      Any explaination or idea to solve this issue.


      Regards