0 Replies Latest reply on Aug 7, 2006 4:15 AM by Dirk Haase

    managed interceptors?

    Dirk Haase Newbie

      Hi,

      I have an interceptor for my server interceptor stack that can take quite a while to execute (not THAT long, but considering how often it's called, it is a performance issue). Therefore I only want to enable it when I really need it for debugging purposes. Of course I would love to enable/disable it without needing to restart my server and changing the standardjboss.xml. So I was thinking about managing it with an MBean.

      I don't know how to set this up correctly. Of course, I could put a static boolean into my interceptor class and alter it via an MBean. Since I'm not clustering any servers, it would work. But I was wondering if there was a better, cleaner way to do it.

      thanks for any input,
      Dirk