4 Replies Latest reply on Jun 17, 2011 1:13 PM by Carl Lewis

    How can I get a reference to the Inteceptor instance

    Carl Lewis Newbie

      I'm running HornetQ 2.1.2 on JBoss AS 5.1.0 and I'd like to use a HornetQ Interceptor. Based on the example code I have a simple Interceptor deployed and working but I'd like to get a reference to the actual Inteceptor class running on the JBoss Server. Based on the example code, I've configured the hornetq-configuration.xml file with:

       

         <remoting-interceptors>

          <class-name>org.mycompany.core.util.HornetQInterceptor</class-name>

         </remoting-interceptors> 

       

      It appears that my interceptor class is instantiated at this point in the logs:

       

      INFO  [org.hornetq.core.server.impl.HornetQServerImpl] (main) live server is starting..

       

      I can see that the intercept method is firing so I know that it is configured correctly, but how can I reference the actual instance of this Interceptor class?

       

      thanks,

       

      Carl