2 Replies Latest reply on Jul 24, 2011 11:32 AM by javaphil

    Ear wide Interceptor JEE6

    javaphil

      Hi,

       

      is it possible to put an interceptor + Annotation with InterceptorBinding  inside a Ear jar module and use it in the other Ear jar modules ????

       

      Thanks

      Philipp

        • 1. Re: Ear wide Interceptor JEE6
          jaikiran

          You can package the interceptor in a jar in .ear/lib and then have a EJB within some other jar in the .ear and use @Interceptors to point to that interceptor class.

          • 2. Re: Ear wide Interceptor JEE6
            javaphil

            Sorry I went to fast here...

             

            I dont want to use @Interceptors(Interceptorclass.class) for binding the Interceptor. I want to use CDI's @InterceptorBinding. Is this possible with an Ear wide Interceptor?

             

            Thanks

            Philipp