3 Replies Latest reply: Oct 24, 2011 6:16 AM by gimbal2 RSS

    PersistenceUnit injection inside servlet running tomcat 6?????

    744624
      hi..

      i've tried all possible combinations,

      public class Starter extends HttpServlet {
      private static final long serialVersionUID = 1L;
      @PersistenceUnit
      EntityManagerFactory hr;
      all i wanna do is get an injected EntityManagerFactory, and it keeps getting ignored completely.
      my resource type is local not jta (it is tomcat after all)

      anyway i can get a sample of it running?