6 Replies Latest reply: Apr 26, 2012 12:25 PM by John Zarins RSS

    Use EntityManager in a RESTEasy PreProcessInterceptor

    John Zarins Newbie

      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.