Hi, Here is some more information about the DOSGI RI and Apache CXF JAX-RS implementation.
In DOSGI RI one can expose and consume RESTful service with the help of CXF JAX-RS with or without using JAX-RS annotations. The latter option is more DOSGI-friendly given that it is less intrusive, as far as the actual user interfaces about to be exposed are concerned. In this case, the CXF JAXRS runtime is still fully involved but the information on how to select and dispatch to a particlular method is provided out-of-band through the use of external user models. Please see : 1. Configuration : http://cxf.apache.org/distributed-osgi-reference.html#DistributedOSGiReference-ServiceProviderpropertiesForConfiguringRESTfulJAXRSbasedendpointsandconsumers 2. greeter_rest demo : http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/ More specifically, see http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/interface/src/main/java/org/apache/cxf/dosgi/samples/greeter/rest/GreeterService.java and http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/interface/src/main/java/org/apache/cxf/dosgi/samples/greeter/rest/GreeterService2.java Note, GreeterService2 is exposed as a RESTful service with the help of http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/interface/src/main/resources/OSGI-INF/cxf/jaxrs/GreeterService2-model.xml Both service are published and consumed as regular OSGI services : http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/impl/src/main/java/org/apache/cxf/dosgi/samples/greeter/impl/rest/Activator.java http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/client/src/main/java/org/apache/cxf/dosgi/samples/greeter/client/rest/Activator.java 3. No-annotations feature and the DOSGI RI and JAX-RS http://cwiki.apache.org/CXF20DOC/jax-rs.html#JAX-RS-RESTfulserviceswithoutannotations Hope it helps, Sergey
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
