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

    Use EntityManager in a RESTEasy PreProcessInterceptor

    John Zarins Newbie



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

      However there is no EntityManager injected (=null).


      My code:

      public class ...
      @In EntityManager entityManager;


      How can I solve this problem?


      Thanks in advance.