Represent agent for MBeanServers registered in ServiceRegistry. Providing registration and unregistration methods.
42434445464748495051
public void start(BundleContext context) throws Exception { logger = new Logger(context); //starting logger logger.open(); logger.log(LogService.LOG_DEBUG, "Starting JMX OSGi bundle"); agent = new JMXAgentImpl(logger); JMXAgentContext agentContext = new JMXAgentContext(context, agent, logger); agent.setAgentContext(agentContext); agent.start(); }