0 Replies Latest reply on Jul 29, 2013 7:27 AM by a7724172

    project name:tasks-rs: JAX-RS, JPA quickstart

    a7724172

      In my research this project ,i have a question .Resources.java  has What Effect? thanks i dont understand when i delete this  ,why this project don't work .please email wfkjzyxy_001@163.com thanks

       

      @Stateful

      @RequestScoped

      public class Resources {

       

       

          @PersistenceContext(type = PersistenceContextType.EXTENDED)

          private EntityManager em;

       

       

          @Produces

          public EntityManager getEm() {

              return em;

          }

       

       

          @Produces

          public Logger getLogger(InjectionPoint ip) {

              String category = ip.getMember().getDeclaringClass().getName();

              return Logger.getLogger(category);

          }

      }