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? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -