0 Replies Latest reply on Sep 27, 2008 1:12 AM by aozoren

    Outside container

    aozoren

      Is there a way to obtain the entityManager / other seam components  created in components.xml or via injection OUTSIDE the container?


      The container is there providing queue services but I am trying to create a STANDALONE app that will run besides the container (not in it) and access the entities and whatnot..


      Following does not work for whatever reason..


      EntityManager em =  (EntityManager) jndi.lookup("java:/copilotEntityManagerFactory");



      Any pointer is appreciated, thanks..