Seems like just invoking publish() on the endpoint does the job. Should I
really be calling publish() though - isn't that for standalone applications
only (or for unit tests), and not for a servlet/application container?
@Bean
public Endpoint calculator() {
EndpointImpl endpoint = new EndpointImpl(cxfBus, new Calculator());
endpoint.setAddress("/CalculatorService");
// I was deliberately missing this
endpoint.publish();
return endpoint;
}
Also, the test Andrei referred to sets the bus on the CXFServlet which seems
to have no effect in my case. What does it do - is it necessary?
cxfServlet.setBus(cxfBus);
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-Tomcat-Spring-Java-config-tp5738793p5738922.html
Sent from the cxf-user mailing list archive at Nabble.com.