Hi Josh, We are doing this in the CXF-base Distributed OSGi implementation (http://cxf.apache.org/distributed-osgi.html), have a look at the following file: http://svn.apache.org/repos/asf/cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/HttpServiceConfigurationTypeHandler.java
Have a look at the createServer method, it creates a CXFNonSpringServlet for this purpose and registers that with the OSGi HTTP Service. As the name suggest, it does not use Spring. BTW if you want to try this out, in the following blog article this functionality is used to host both a .WAR file and an CXF Endpoint on the same host/port through the OSGi HTTP Service: http://coderthoughts.blogspot.com/2009/02/distributed-osgi-powered-ajax-webapp.html Hope this helps, David 2009/3/25 Josh Holtzman <[email protected]>: > I'm trying to deploy CXF-based webservices on Apache Felix. I've got almost > everything working, thanks to the generous help of Guillaume Nodet (thanks > again!). The one piece I haven't figured out is how to configure a JAX-WS > endpoint to use the existing osgi http service (I'm using Pax). I've > deployed the "Apache ServiceMix CXF Transport for OSGi (4.0.0)" bundle, but > since I'm not using spring-dm, it doesn't seem to do anything for me. I'm > trying to do this with minimal dependencies, so I'd like to leave spring-dm > out of the picture if possible. > > Does anyone have a recipe for configuring CXF to allow multiple JAX-WS > endpoints to use the servlet container created by the osgi http service? > Right now, I'm doing: > > Endpoint.publish("http://localhost:8080/sample", new > SampleWebServiceImpl()); > > And because I've got an existing osgi http service on 8080, I get "Address > already in use" > > Thanks, > Josh > > -- > Josh Holtzman > Educational Technology Services, UC Berkeley > [email protected] > 510.529.9225 > >
