java - Register MBean Everytime before using it -


i registering mbean in common class while booting tomcat application. trying access bean in other class record statistics. jmx bean values not getting updated in jconsole.

to instantiate mbean tried

  1. mbeanimplclass = new mbeanimplclass();
  2. mbeaninterface= new mbeaninterface();

do have register mbean, everytime use it?

no, but, need make sure bean registered, , bean being updated new statistics same instance. 1 way implement bean singleton.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -