You can skip spring altogether and configure your JAX-RS services using
JaxRsServerFactoryBean. See [1]. Call setAddress("/") to use the root
HttpContext.
[1]
http://cxf.apache.org/javadoc/latest/org/apache/cxf/jaxrs/JAXRSServerFactoryBean.html
Josh
On Wed, Jan 12, 2011 at 6:26 AM, Rice Yeh <[email protected]> wrote:
> Hi,
> I am moving my JAX-RS web application (a war file) to OSGi HttpService.
> The first thing I am doing is to move configuration on web.xml to an bundle
> activator. The first thing in the activator is registering CXFServlet. The
> for migrating cxf.xml configuration , which is now configurated through
> org.springframework.web.context.ContextLoaderListener, I have no clear idea
> on doing it. Maybe I can write some spring code in activator to do it.
> Anyone can give me some suggestions?
>
> Rice
>