0 Replies Latest reply on May 26, 2011 8:36 PM by Ondra Zizka

    CDI (Weld) and JPA in standalone app

    Ondra Zizka Newbie
      Hi, I'm looing for an example of how to use JPA + Weld.

      My idea is that Weld should do all the work up to giving me an EntityManager, being provided persistence.xml and this line:

         @PersistenceContext(unitName="...") private EntityManager em;

      What do I need to get that working?
      I've found http://www.laliluna.de/articles/2011/01/12/jboss-weld-jpa-hibernate.html
      which gave me an impression that I have to implement that on my own.

      Is that right?
      If not, is there an example / best practice demo?