Is there a way to set properties of a JMX MBean in a bundle activator? I know this can be done through curl .. but was looking for inputs on how the same can be achieved in Java. Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi
Adding one more reference link : https://helpx.adobe.com/experience-manager/using/sling_servlet_mbean.html
I hope it would be some help for you.
Thanks and regards
Kautuk Sahni
Views
Replies
Total Likes
We have a communtiy artilce that shows how to work with MBean using an API. See this one:
https://helpx.adobe.com/experience-manager/using/aem-first-components1.html
This one uses these APIs:
import
javax.management.MBeanServerConnection;
import
javax.management.MBeanServer ;
Views
Replies
Total Likes
Hi
Adding one more reference link : https://helpx.adobe.com/experience-manager/using/sling_servlet_mbean.html
I hope it would be some help for you.
Thanks and regards
Kautuk Sahni
Views
Replies
Total Likes
Thanks so much for the links Donald / Kautuk.
I used MBeanServer and was able to get a reference to one of the MBeans.
But when I try it with "org.apache.jackrabbit.oak:type=CompactionStrategy" to set some of the flags related to online compaction, it returns back a null object. I can see this MBean in the jmx console.
Any ideas on why this may be happening?
Thanks again.
Views
Replies
Total Likes
If a null value is being returned, it means you are not referencing a proper mbean.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies