6 Replies Latest reply on Apr 26, 2012 12:25 PM by johnz2012

    Use EntityManager in a RESTEasy PreProcessInterceptor

    johnz2012

      Hi,

       

      I'd like to use a PreProcessInterceptor to implement an authentication mechanism.

      However there is no EntityManager injected (=null).

       

      My code:

      @Name("AuthProv")
      @ServerInterceptor
      @Provider
      public class ...
      
      @In EntityManager entityManager;
      

       

      How can I solve this problem?

       

      Thanks in advance.