2008-04-20 (日) の 15:22 +0200 に Leos Literak さんは書きました:
> 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.

There's a CXFNonSpringServlet that you can use that may be of help for
you, but IIRC it is not in heavy use and therefore not very well
documented:

[1]
http://www.nabble.com/forum/Search.jtp?forum=16914&local=y&query=cxfnonspringservlet


> 2) My application is a web application running in jetty container, so 
> starting jetty within jetty is not good option.

Here's everything I know for Tomcat:
http://www.jroller.com/gmazza/date/20080417


> 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

It's here, but our JavaDoc is pretty weak:
http://incubator.apache.org/cxf/javadoc/latest/org/apache/cxf/transport/servlet/CXFServlet.html

Glen


Reply via email to