public void start() { if (!stopped) { return; } LOG.fine("Server is starting."); bindingFactory.addListener(destination, endpoint); // register the active server to run if (null != serverRegistry) { LOG.fine("register the server to serverRegistry "); serverRegistry.register(this); } if (slcMgr == null) { slcMgr = bus.getExtension(ServerLifeCycleManager.class); if (slcMgr != null && mep != null) { slcMgr.registerListener(mep); } } if (slcMgr != null) { slcMgr.startServer(this); } stopped = false; }
public void start() { if (!stopped) { return; } LOG.fine("Server is starting."); bindingFactory.addListener(destination, endpoint); // register the active server to run if (null != serverRegistry) { LOG.fine("register the server to serverRegistry "); serverRegistry.register(this); } if (slcMgr == null) { slcMgr = bus.getExtension(ServerLifeCycleManager.class); if (slcMgr != null && mep != null) { slcMgr.registerListener(mep); } } if (slcMgr != null) { slcMgr.startServer(this); } stopped = false; }
public void start() { if (!stopped) { return; } LOG.fine("Server is starting."); bindingFactory.addListener(destination, endpoint); // register the active server to run if (null != serverRegistry) { LOG.fine("register the server to serverRegistry "); serverRegistry.register(this); } if (slcMgr == null) { slcMgr = bus.getExtension(ServerLifeCycleManager.class); if (slcMgr != null && mep != null) { slcMgr.registerListener(mep); } } if (slcMgr != null) { slcMgr.startServer(this); } stopped = false; }
public void start() { if (!stopped) { return; } LOG.fine("Server is starting."); bindingFactory.addListener(destination, endpoint); // register the active server to run if (null != serverRegistry) { LOG.fine("register the server to serverRegistry "); serverRegistry.register(this); } if (slcMgr == null) { slcMgr = bus.getExtension(ServerLifeCycleManager.class); if (slcMgr != null && mep != null) { slcMgr.registerListener(mep); } } if (slcMgr != null) { slcMgr.startServer(this); } stopped = false; }
@Override public void initialize(Server server, Bus bus) { ManagedApi mApi = new ManagedApi(bus, server.getEndpoint(), server); InstrumentationManager iMgr = bus.getExtension(InstrumentationManager.class); if (iMgr != null) { try { iMgr.register(mApi); ServerLifeCycleManager slcMgr = bus.getExtension(ServerLifeCycleManager.class); if (slcMgr != null) { slcMgr.registerListener(mApi); slcMgr.startServer(server); } } catch (JMException jmex) { jmex.printStackTrace(); LOG.log(Level.WARNING, "Registering ManagedApi failed.", jmex); } } }
if (slcMgr != null) { slcMgr.registerListener(mApi); slcMgr.startServer(server);
@Override public void initialize(Server server, Bus bus) { ManagedApi mApi = new ManagedApi(bus, server.getEndpoint(), server); InstrumentationManager iMgr = bus.getExtension(InstrumentationManager.class); if (iMgr == null) { iMgr = new InstrumentationManagerImpl(bus); } ((InstrumentationManagerImpl)iMgr).setUsePlatformMBeanServer(true); ((InstrumentationManagerImpl)iMgr).setCreateMBServerConnectorFactory(false); ((InstrumentationManagerImpl)iMgr).setEnabled(true); ((InstrumentationManagerImpl)iMgr).init(); if (iMgr != null) { try { iMgr.register(mApi); ServerLifeCycleManager slcMgr = bus.getExtension(ServerLifeCycleManager.class); if (slcMgr != null) { slcMgr.registerListener(mApi); slcMgr.startServer(server); } } catch (JMException jmex) { jmex.printStackTrace(); LOG.log(Level.WARNING, "Registering ManagedApi failed.", jmex); } } }