serverFactory.setStart(false); serverFactory.setEndpointName(endpointName); serverFactory.setServiceBean(implementor);
bean.setStart(true); bean.setAddress("camel://" + createEndpointUri()); if (loggingFeatureEnabled) {
svrFactory.setAddress(address); svrFactory.setServiceFactory(serviceFactory); svrFactory.setStart(false); svrFactory.setServiceBean(implementor); svrFactory.setDestinationFactory(httpTransportFactory);
svrFactory.setAddress(address); svrFactory.setServiceFactory(serviceFactory); svrFactory.setStart(false); svrFactory.setServiceBean(implementor); svrFactory.setDestinationFactory(destinationFactory);
protected void doPublish(String baseAddress) { // XXX: assume port 8080 by default since we don't know the actual port at startup String address = (baseAddress == null) ? "http://localhost:8080" : baseAddress; JaxWsServerFactoryBean svrFactory = new GeronimoJaxWsServerFactoryBean(); svrFactory.setBus(bus); svrFactory.setAddress(address + this.portInfo.getLocation()); svrFactory.setServiceFactory(serviceFactory); svrFactory.setStart(false); svrFactory.setServiceBean(implementor); if (HTTPBinding.HTTP_BINDING.equals(implInfo.getBindingType())) { svrFactory.setTransportId("http://cxf.apache.org/bindings/xformat"); } server = svrFactory.create(); init(); //org.apache.cxf.endpoint.Endpoint endpoint = getEndpoint(); if (getBinding() instanceof SOAPBinding && this.portInfo.getMtomFeatureInfo() != null) { ((SOAPBinding) getBinding()).setMTOMEnabled(this.portInfo.getMtomFeatureInfo().isEnabled()); } server.start(); }
@Test public void testServerFactory() { JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean(); sf.getFeatures().add(new WSAddressingFeature()); sf.setServiceBean(new GreeterImpl()); sf.setAddress("http://localhost:" + PORT + "/test"); sf.setStart(false); sf.setBus(getBus()); Server server = sf.create(); Endpoint endpoint = server.getEndpoint(); checkAddressInterceptors(endpoint.getInInterceptors()); }
@Test public void testServerFactory() { JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean(); assertNotNull(bus != null); sf.setServiceBean(new GreeterImpl()); sf.setAddress("http://localhost:" + PORT + "/test"); sf.setStart(false); Configurer c = getBus().getExtension(Configurer.class); c.configureBean("server", sf); Server server = sf.create(); Endpoint endpoint = server.getEndpoint(); checkAddressInterceptors(endpoint.getInInterceptors()); }
serverFactory.setStart(false); serverFactory.setEndpointName(endpointName); serverFactory.setServiceBean(implementor);