use of org.apache.cxf.jaxws.EndpointImpl in project cxf by apache.
the class SoapJmsSpecTest method startServers.
@BeforeClass
public static void startServers() throws Exception {
startBusAndJMS(SoapJmsSpecTest.class);
publish("jms:queue:test.cxf.jmstransport.queue2", new GreeterSpecImpl());
publish("jms:queue:test.cxf.jmstransport.queue5", new GreeterSpecWithPortError());
EndpointImpl ep = (EndpointImpl) Endpoint.create(null, new GreeterSpecImpl());
ep.setBus(bus);
ep.getFeatures().add(new GZIPFeature());
ep.getFeatures().add(cff);
ep.publish("jms:queue:test.cxf.jmstransport.queue6");
}
use of org.apache.cxf.jaxws.EndpointImpl in project cxf by apache.
the class AbstractVmJMSTest method publish.
public static void publish(String address, Object impl) {
EndpointImpl ep = (EndpointImpl) Endpoint.create(impl);
ep.setBus(bus);
ep.getFeatures().add(cff);
ep.publish(address);
}
use of org.apache.cxf.jaxws.EndpointImpl in project uavstack by uavorg.
the class CxfConfig method endpoint.
@Bean
public Endpoint endpoint() {
EndpointImpl endpoint = new EndpointImpl(new SpringBus(), userService());
endpoint.publish("/user");
return endpoint;
}
use of org.apache.cxf.jaxws.EndpointImpl in project cxf by apache.
the class ManualNumberFactoryImpl method initDefaultServant.
protected void initDefaultServant() {
servant = new ManualNumberImpl();
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();
}
use of org.apache.cxf.jaxws.EndpointImpl in project cxf by apache.
the class ClientMtomXopWithJMSTest method startServers.
@BeforeClass
public static void startServers() throws Exception {
Object implementor = new TestMtomJMSImpl();
bus = BusFactory.getDefaultBus();
ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false");
PooledConnectionFactory cfp = new PooledConnectionFactory(cf);
cff = new ConnectionFactoryFeature(cfp);
EndpointImpl ep = (EndpointImpl) Endpoint.create(implementor);
ep.getFeatures().add(cff);
ep.getInInterceptors().add(new TestMultipartMessageInterceptor());
ep.getOutInterceptors().add(new TestAttachmentOutInterceptor());
// ep.getInInterceptors().add(new LoggingInInterceptor());
// ep.getOutInterceptors().add(new LoggingOutInterceptor());
SOAPBinding jaxWsSoapBinding = (SOAPBinding) ep.getBinding();
jaxWsSoapBinding.setMTOMEnabled(true);
ep.publish();
}
Aggregations