This sample uses JMXConnectorServer and client uses JMXConnector to access MBean.
More...
This sample uses JMXConnectorServer and client uses JMXConnector to access MBean.
This sample uses JMXConnectorServer and client uses JMXConnector to access MBean.
Server
-
IHelloService is service interface.
-
HelloServiceMBean is an managed bean interface which extends from IHelloService.
-
HelloService implements HelloServiceMBean interface.
-
Server registers MBean with MBeanServer.
-
Server also need to start the registry service at some port.
Client
-
HelloServiceImpl uses hostname, port and object name to connect to JMXConnectorServer.
-
HelloServiceImpl implements IHelloService service interface.
-
HelloServiceImpl uses JMXConnector to get the MBean which can be type cast to IHelloService.