0 Replies Latest reply on Mar 24, 2010 6:08 AM by Michal Glowacki

    One of more persistence context for separate projects?

    Michal Glowacki Novice

      hi,

       

      I develop a pack of applications that use the same database. In order to get all the applications using same entity manager I have created just one persistence.xml file, in my entity beans project. Then I created session beans project and attached entity beans as library. The same I did in seam web application. Now I am bit confused, because entity manager is injected correctly in seam application, but is always null in session beans... I mean, I want to use in web app session bean, I create/inject/annotate (@In,@EJB) and all the time entity manager in session bean is null...

       

      All the tutorials are so simple, just saying how to work inside one project... Could anyone help me with this one?