@Configuration @Order(3) @ImportResource({ "classpath:META-INF/cxf/cxf.xml" }) public class CXFConfiguration { @Autowired Bus cxfBus; @Bean public Endpoint lotServiceEndpointWS() { EndpointImpl endpoint = new EndpointImpl(this.cxfBus, new LotServiceEndpoint()); endpoint.setAddress("/LotService"); endpoint.publish(); return endpoint; }
@Override public void afterPropertiesSet() throws Exception { final JmsUriConfigurator cfg = JmsUriConfigurator.create(endpoint); if (cfg == null) { return; } final EndpointImpl ei = (EndpointImpl) endpoint; CallContext.setupEndpoint(ei); cfg.setPresetJmsAddress(ei.getAddress()); ei.setAddress(cfg.createJmsAddress()); if (publishEndpoint) { ei.publish(); } } }
public static Endpoint setupCommandServiceEndpoint( String address, CommandWebService webServiceImpl ) { EndpointImpl ep = (EndpointImpl) Endpoint.create(webServiceImpl); ep.setAddress(address); ep.getProperties().put(SecurityConstants.CALLBACK_HANDLER, new TestServerPasswordCallback()); ep.publish(); return ep; }
@BeforeClass public static void startServers() throws Exception { startBusAndJMS(JMSTransactionTest.class); //startBusAndJMS("tcp://localhost:61616"); endpoint = new EndpointImpl(bus, new GreeterImplWithTransaction()); endpoint.setAddress(SERVICE_ADDRESS); endpoint.setFeatures(Collections.singletonList(cff)); endpoint.publish(); }
protected void initDefaultServant() { servant = new NumberImpl(); String wsdlLocation = "testutils/factory_pattern.wsdl"; String bindingId = null; EndpointImpl ep = new EndpointImpl(bus, servant, bindingId, wsdlLocation); ep.setEndpointName(new QName(NUMBER_SERVICE_QNAME.getNamespaceURI(), "NumberPort")); ep.publish(getServantAddressRoot()); endpoints.add(ep); templateEpr = ep.getServer().getDestination().getAddress(); // jms port EmbeddedJMSBrokerLauncher.updateWsdlExtensors(bus, wsdlLocation); ep = new EndpointImpl(bus, servant, bindingId, wsdlLocation); ep.setEndpointName(new QName(NUMBER_SERVICE_QNAME.getNamespaceURI(), "NumberPortJMS")); ep.setAddress("jms:jndi:dynamicQueues/test.cxf.factory_pattern.queue"); ep.publish(); ep.getServer().getEndpoint().getInInterceptors().add(new LoggingInInterceptor()); ep.getServer().getEndpoint().getOutInterceptors().add(new LoggingOutInterceptor()); endpoints.add(ep); }
); ep.setWsdlLocation(wsdl.getPath()); ep.setAddress(POLICY_CXF4122_ADDRESS); ep.publish(); EndpointInfo ei = ep.getServer().getEndpoint().getEndpointInfo();
ep.setEndpointName(new QName("http://www.example.org/contract/DoubleIt", "DoubleItPortHttps")); ep.setWsdlLocation(wsdl.getPath()); ep.setAddress(POLICY_HTTPS_ADDRESS); ep.publish(); ep.getServer().getEndpoint().getEndpointInfo().setProperty(SecurityConstants.CALLBACK_HANDLER, ); ep.setWsdlLocation(wsdl.getPath()); ep.setAddress(POLICY_ENCSIGN_ADDRESS); ep.publish(); EndpointInfo ei = ep.getServer().getEndpoint().getEndpointInfo(); ); ep.setWsdlLocation(wsdl.getPath()); ep.setAddress(POLICY_SIGNENC_ADDRESS); ep.publish(); ei = ep.getServer().getEndpoint().getEndpointInfo(); ep.setEndpointName(new QName("http://www.example.org/contract/DoubleIt", "DoubleItPortSign")); ep.setWsdlLocation(wsdl.getPath()); ep.setAddress(POLICY_SIGN_ADDRESS); ep.publish(); ei = ep.getServer().getEndpoint().getEndpointInfo(); ep.setEndpointName(new QName("http://www.example.org/contract/DoubleIt", "DoubleItPortXPath")); ep.setWsdlLocation(wsdl.getPath()); ep.setAddress(POLICY_XPATH_ADDRESS); ep.publish(); ei = ep.getServer().getEndpoint().getEndpointInfo();