2 Replies Latest reply on Jul 17, 2016 1:56 AM by Gulam Samdani

    MBeans, proper use case?

    Ryan Pape Newbie

      I'm trying to insturment a web service using a request handler and an MBean.

      Currently, I create and register, upon initialization of the handler a custom MBean. Is it more correct to have the MBean contain a reference to my handler to pull the statistics it needs or to have the handler update the MBEan with statistics when it determines it is necessary?

      More importantly, is it proper form to have the MBean created and registered by the object it is managing? Most of the examples show independent services deployed with dependcies on the services they monitor..I don't think that works in this case.