Hi,

I want to add soap stack to my web application. I decided for CXF. This page http://cwiki.apache.org/CXF20DOC/servlet-transport.html shows it could be possible. I set up web.xml and now I want to bind the servlet to bus, as specified in documentation:

// cxf is the instance of the CXFServlet
Bus bus = cxf.getBus();
BusFactory.setDefaultBus(bus);
Endpoint.publish("/Greeter", new GreeterImpl());

The question is: how can I get the CXFServlet instance? J2EE's getServlet() method is deprecated.

1) I dont want to add spring to my project so I want to use programmatic way. 2) My application is a web application running in jetty container, so starting jetty within jetty is not good option.
3) Endpoint has no method publish, but EndpointImpl.

Thank you

Leos

PS1 documentation says that to build samples you need ant 1.6. I've got CXFServlet, but it fails, that verbose attribute is not supported

PS2 javadoc from installer does not contain CXFServlet

Reply via email to