I'm not strong with JMX.
1. Could you please give me an example how can I programmatically invoke the WroConfiguration.reloadCache() method?
2. How can I be sure, that MBean is registred?
You know, I've tried:
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
ObjectName name = new ObjectName("ro.isdc.wro.config.jmx.jmx:type=WroConfiguration");
MBeanInfo mBeanInfo = mbs.getMBeanInfo(name);
ObjectInstance objectInstance = mbs.getObjectInstance(name);
But both mBeanInfo, objectInstance are nullable. What am I doing wrong? I test it in wildfly, in startup logic of singleton ejb bean.
The property in wro.properties is: