You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Rice Yeh <ri...@gmail.com> on 2011/01/12 06:26:02 UTC
JAX-RS configuration on OSGi HttpService
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
Re: JAX-RS configuration on OSGi HttpService
Posted by Josh Holtzman <jh...@berkeley.edu>.
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 <ri...@gmail.com> 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
>