4 Replies Latest reply on Feb 2, 2010 1:14 PM by satishyl

    Interceptors not working for Service Bean life cycle methods

      Hello,

       

      I have a service bean created the following way:

       

      @Service(...)

      @Management(...)

      @Interceptors({MyInterceptor.class})

      public class MyService

      {

           public void start()

           {

                ...

           }

      }

       

      However, when the start() method is called on the server startup, it does not go through the interceptors specified. Are interceptors not supported for Service Beans or do I have to do it any different way? I am using JBoss AS 4.2.2.

       

      Thanks,

      Satish