1 Reply Latest reply on Sep 6, 2010 4:17 AM by jaikiran

    Generic Interfaces, Interceptors and JBoss 5.1.0GA

    alexander.paluch

      Hello everyone,

       

      I am implementing EJBs by using a Generic super Interface. This interface becomes concrete  by deriving a local / remote interface. Now if I try to use Interceptors, they just won't be called. However, if I remove the generic Parametrization <T>, the interceptor gets called correctly. Is this a JBoss implementation issue or is it just illegal to use generic interfaces within the EJB standard?

       

      Example:

       

      public interface IMySuperGenericService<T> {

       

      public T call(T io);

       

      }

       

      ===

       

      @Local

      public interface MyConcreteServiceLocal extends IMySuperGenericService<MyType> {

          

      }

       

      ===

       

      @Stateless

      @Interceptors(MyInterceptor.class)

      public MyConcreteServiceImpl implements MyConcreteServiceLocal {

        ...

      }