All,

I'd like a little advice from the CXF users. Here's my setup.

Karaf 2.2.7
CXF 2.6.0

I've got several bundles implementing various interfaces that I expose as 
JAX-RS endpoints.  Currently, I've got one bundle that configures a jaxrs bean 
which depends on all of the implementing bundles.  This works fine as long as 
all of the bundles are installed and created.  What I'd like to do is 
selectively add and/or remove some bundles (ie functionality) and have the REST 
endpoint adjust accordingly.  The main advantage of this approach is the 
ability to configure interceptors in one location.  I'd like to continue to 
manage the interceptors (currently authentication and exception handling) in 
one place without having to copy the same configuration to all of the 
implementing modules.

Currently, the REST endpoint is at /cxf/core/<feature>

Within Karaf, I'd like to issue the command
                features:uninstall feature
and have /cxf/core endpoint continue to function (even after a restart) with 
the remaining endpoints/beans.

Likewise, I'd like issue the Karaf command:
                features:install feature2
and have the REST endpoing for feature2 enabled under /cxf/core/<feature2>

Has anyone tried to do this?  Most of the documentation and samples I've seen 
have a hard-coded set of implementing beans, but I've yet to run into something 
that let's you add/remove JAX-RS beans in this manner.  Am I missing something 
obvious?

--
Javier Delgadillo
Esri / Implementation Services

Reply via email to