Hi Geode community,

We have a use case where we would like a client side JVM to register Mbean
and federated by JMX Manager on a locator. (As a result,  jconsole that
connects to JMX Manager can see what's happening on the client JVM that
"connects" to the cluster. We do so currently ClientCache [1])
We are referring
https://cwiki.apache.org/confluence/display/GEODE/Creating+Custom+MXBean
and are able to get MBean on a *GF Server* federated.
But we would like to do the same with MBean on a client JVM.

We are assuming that if we can get a cache of server (not ClientCache) then
we can pass it to ManagementService([2]just like the doc said) but we don't
know how to get a server Cache instance on a client JVM.

This might be an unpolished question but could you please let us know if we
are thinking right way and / or how we can achieve it?


[1] This is how we get "connected" through ClientCache to the GF cluster.
Region region = clientCache.createClientRegionFactory("PROXY").create(REGION
)


[2] This is what the doc says and it works for us on server side.
ManagementService service = ManagementService.getManagementService(cache);
// where the cache is Cache instance)
service.registerMBean(bean, beanName);
service.federate(beanName, CustomMXBean.class, false);


-- 
Thank you,
- jun

*Pivotal*

Reply via email to