From the doc:
Deprecated. 22.214.171.124 Replaced by standard JMX design patterns in which clients use the
javax.management.MBeanServerConnectioninterface to discover MBeans, attributes, and attribute types at runtime.
So the answer is to use
javax.management.MBeanServerConnectioninstead of the old MBeanHome.
Thanks for your reply.
But how can I translate the MBeanHome to MBeanServerConnection? I want to use getActiveDomain() method inside MBeanHome.