@BeforeClass public static void initialize() throws Exception { dateFormatStr = "yyyy-MM-dd"; System.setProperty("org.jbpm.event.emitters.elasticsearch.date_format", dateFormatStr); FakeElasticSearchRESTApplication application = new FakeElasticSearchRESTApplication(responseCollector); RuntimeDelegate delegate = RuntimeDelegate.getInstance(); JAXRSServerFactoryBean bean = delegate.createEndpoint(application, JAXRSServerFactoryBean.class); String url = "http://localhost:9998" + bean.getAddress(); bean.setAddress(url); server = bean.create(); server.start(); System.setProperty("org.jbpm.event.emitters.elasticsearch.url", url); }
@BeforeClass public static void initialize() throws Exception { FakeElasticSearchRESTApplication application = new FakeElasticSearchRESTApplication(responseCollector); RuntimeDelegate delegate = RuntimeDelegate.getInstance(); JAXRSServerFactoryBean bean = delegate.createEndpoint(application, JAXRSServerFactoryBean.class); String url = "http://localhost:9998" + bean.getAddress(); bean.setAddress(url); server = bean.create(); server.start(); System.setProperty("org.jbpm.event.emitters.elasticsearch.url", url); }
@Override public void start() throws MuleException { // Start the CXF Server if (server != null) { server.start(); } }
@Override protected void doStart() throws Exception { server.start(); }
@Override protected void doStart() throws Exception { if (server != null) { server.start(); } super.doStart(); } }
@Override protected void doStart() throws Exception { super.doStart(); if (server == null) { server = createServer(); } server.start(); }
@Override protected void doStart() throws Exception { super.doStart(); if (server == null) { server = createServer(); } server.start(); }
@ManagedOperation public void start() { if (state == State.STARTED) { return; } ServerLifeCycleManager mgr = bus.getExtension(ServerLifeCycleManager.class); if (mgr != null) { mgr.registerListener(this); } server.start(); }
@ManagedOperation public void start() { if (state == State.STARTED) { return; } ServerLifeCycleManager mgr = bus.getExtension(ServerLifeCycleManager.class); if (mgr != null) { mgr.registerListener(this); } server.start(); }
/** * Publish the JAX-WS endpoint. * @param publishUrl The url to publish the endpoint to */ public void publish(String publishUrl) { _publishUrl = publishUrl; SOAPLogger.ROOT_LOGGER.publishingWebServiceAt(_publishUrl); _svrFactory.setAddress(publishUrl); _server = _svrFactory.create(); _server.start(); }
@ManagedOperation public void start() { if (state == State.STARTED) { return; } ServerLifeCycleManager mgr = bus.getExtension(ServerLifeCycleManager.class); if (mgr != null) { mgr.registerListener(this); } server.start(); }
@ManagedOperation public void start() { if (state == State.STARTED) { return; } ServerLifeCycleManager mgr = bus.getExtension(ServerLifeCycleManager.class); if (mgr != null) { mgr.registerListener(this); } server.start(); }
/** * Publish the JAX-WS endpoint. * @param publishUrl The url to publish the endpoint to */ public void publish(String publishUrl) { _publishUrl = publishUrl; SOAPLogger.ROOT_LOGGER.publishingWebServiceAt(_publishUrl); _svrFactory.setAddress(publishUrl); _server = _svrFactory.create(); _server.start(); }
@Override public Object execute() throws Exception { Bus b = getBus(busName); ServerRegistry reg = b.getExtension(ServerRegistry.class); List<Server> servers = reg.getServers(); for (Server serv : servers) { if (endpoint.equals(serv.getEndpoint().getEndpointInfo().getName().getLocalPart())) { serv.start(); } } return null; } }
private void startServer() { ServerRegistry reg = serverBus.getExtension(ServerRegistry.class); List<Server> servers = reg.getServers(); for (Server serv : servers) { serv.start(); } }
protected ApplicationServer() throws Exception { PersonApplication application = new PersonApplication(); RuntimeDelegate delegate = RuntimeDelegate.getInstance(); JAXRSServerFactoryBean bean = delegate.createEndpoint(application, JAXRSServerFactoryBean.class); bean.setAddress("http://localhost:8080/services" + bean.getAddress()); server = bean.create(); server.start(); }
protected ApplicationServer() throws Exception { AttachmentApplication application = new AttachmentApplication(); RuntimeDelegate delegate = RuntimeDelegate.getInstance(); JAXRSServerFactoryBean bean = delegate.createEndpoint(application, JAXRSServerFactoryBean.class); bean.setAddress("http://localhost:8080/services" + bean.getAddress()); bean.create().start(); }
public void startService() { PersonServiceImpl personServiceImpl = new PersonServiceImpl(); JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean(); factory.setAddress("http://localhost:8282/person"); factory.setServiceClass(PersonService.class); factory.setServiceBean(personServiceImpl); Server server = factory.create(); server.start(); }
private static Server startApplication(Application app) { RuntimeDelegate delegate = RuntimeDelegate.getInstance(); JAXRSServerFactoryBean bean = delegate.createEndpoint(app, JAXRSServerFactoryBean.class); bean.setAddress("http://localhost:8080" + bean.getAddress()); bean.setStart(false); Server server = bean.create(); JettyHTTPDestination dest = (JettyHTTPDestination)server.getDestination(); JettyHTTPServerEngine engine = (JettyHTTPServerEngine)dest.getEngine(); engine.setSessionSupport(true); server.start(); return server; }
private static Server startApplication(Application app) { RuntimeDelegate delegate = RuntimeDelegate.getInstance(); JAXRSServerFactoryBean bean = delegate.createEndpoint(app, JAXRSServerFactoryBean.class); bean.setAddress("http://localhost:8080" + bean.getAddress()); bean.setStart(false); Server server = bean.create(); JettyHTTPDestination dest = (JettyHTTPDestination)server.getDestination(); JettyHTTPServerEngine engine = (JettyHTTPServerEngine)dest.getEngine(); engine.setSessionSupport(true); server.start(); return server; }