On Monday 22 September 2008 10:49:03 am Glen Mazza wrote: > But even if you use CXFNonSpringServlet doesn't CXF still require Spring? > (The OP doesn't want to use Spring.) I'm unsure here, but I thought > CXFNonSpringServlet means the *servlet* is not based on Spring, but CXF > itself still needs it as a dependency.
No. SOME stuff in CXF can be done without spring. The basic JAX-WS cases can be done without the spring jars there at all. We have an alternative code path to setup the bus without spring, but not everything is wired in that way. (ws-security, ws-rm, ws-policy, etc... are amongst those) Most of the advanced cases will require spring or doing a lot of low level API programming to get it configured. Also, the new JMS transport Christian is working on will most likely require Spring. Dan > > Regards, > Glen > > willem.jiang wrote: > > Hi Nick, > > > > Since we use the spring to load the endpoint configuration in > > CXFServlet, you have to do > > some work to load the endpoint information by yourself beyond the > > CXFNonSpringServlet. > > Basically , you just need to use the bus which is loaded in the > > CXFNonSpringServlet, and usethe Jaxws API > > or the ServerFactoryBean API to create the endpoint. > > > > Here is an example[1] in the system test of the CXFNonSpringServlet. > > > > [1]https://svn.apache.org/repos/asf/incubator/cxf/trunk/systests/src/test > >/java/org/apache/cxf/systest/servlet/NoSpringServletServer.java > > > > Willem. > > > > Nanook wrote: > >> Let me start by saying that I am somewhat new to the CXF library and to > >> JAXWS > >> in general. I would like to deploy the service under Tomcat 5.5. and I > >> have > >> been able to get one of the samples to work using the standard > >> CXFServlet configuration. However, our application server environment > >> does not include > >> Spring, nor do we care to include it at this time. I would really like > >> to trim out the spring libraries and bootstrapping from the CXF > >> dependency list. > >> > >> How can I get a web service to listen on a servlet transport without > >> using > >> Spring? I have read earlier posts referring to the CXFNonSpringServlet, > >> but > >> when I substitute this class in the web.xml for Tomcat, it does not > >> work. There is little in the way of an error message, other than: "Can't > >> find the > >> the request for http://myhost/services/hello_world's Observer". > >> > >> Thanks in advance! > >> > >> --Nick -- Daniel Kulp [EMAIL PROTECTED] http://www.dankulp.com/blog
