Hi,
I am moving my project to OSGi environment. My project uses JAXRS with
CXFServlet, so I can have many servlets (one of them is mapped path '/s1')
in a servlet context (with context path '/c') with many JAXRS root resource
classes (with @Path "r1", "r2", etc.). When accessing a resource, the url
is like http://localhost:8080/c/s1/r1. How do I move this common address
mapping mechanism to an OSGi environment? From the example in
http://www.liquid-reality.de/display/liquid/2011/12/22/Karaf+Tutorial+Part+4+-+CXF+Services+in+OSGi,
it seems that I cannot have multiple servlets? And the only servlet
registered to HttpService represents the CXF. The jaxrs:sever as shown in
the following directly represents the root resource class and hence can
have only one serviceBean.
<jaxrs:server address="/person" id="personService">
<jaxrs:serviceBeans>
<ref component-id="personServiceImpl" />
</jaxrs:serviceBeans>
</jaxrs:server>
Rice