10 Replies Latest reply on Mar 13, 2008 5:33 AM by Kulvinder Singh

    different EntityManagerProxy at every request

    Kulvinder Singh Newbie

      I have entityManager configured in components.xml with conversation scope.


      I have a stateful session bean and injecting the entitymanater as @In.


      I am using EntityQuery object inside the SFSB and setting the entityManager in it from SFSB.


      Everything works file in listing and searching but when I click on slink for sorting/pagination then it gives EntityManager is closed


      I went through and found that EntityManagerProxy object is different with each invocation. I thought that EntityManager object will be same across the long-running conversation.


      Please suggest.