Hi, After http://svn.apache.org/repos/asf/cxf/trunk/distribution/bundle/jaxrs/ is built, cxf-bundle-jaxrs is produced. It can be pulled in using Maven only or one can quickly build it by : 1. mvn install -Pfastinstall 2. cd trunk/api, mvn install 3. cd trunk/distribution/bundles/jaxrs, mvn install
This bundle should have all the right osgi import/export package directives. Additionally, this bundle needs to be installed in OSGI : http://svn.apache.org/repos/asf/servicemix/smx4/specs/tags/specs-1.3.0/j sr311-api-1.0/ This should be enough. Actually, we also have a cxf-bundle-minimal and it also has the JAX-RS code embedded, which is used by DOSGi RI : http://cxf.apache.org/distributed-osgi.html > ideally with a whiteboard pattern where I just register Resources into the service pool and CXF picks them up and exposes the ReST endpoints Right now we're working on making something similar happening in DOSGi. It's nearly done, Josh Holtzman has done most of the work already. Have a look please at DOSGi docs and let me know if you reckon it can help. Thanks, Sergey -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Aaron Zeckoski Sent: 11 June 2009 05:33 To: [email protected] Subject: Minimal CXF osgi bundle to use JAXRS I have looked over the stuff here: http://cwiki.apache.org/CXF20DOC/jax-rs.html and here: http://svn.apache.org/repos/asf/cxf/trunk/distribution/bundle/jaxrs/pom. xml but I can't find anything about an OSGi bundle (ideally a single bundle but a set of bundles would be ok) which would let me use JAXRS in my OSGi container (ideally with a whiteboard pattern where I just register Resources into the service pool and CXF picks them up and exposes the ReST endpoints). Many thanks if anyone can provide a link or helpful info. :-) -AZ -- Aaron Zeckoski (azeckoski (at) vt.edu) Senior Research Engineer - CARET - Cambridge University https://twitter.com/azeckoski - http://www.linkedin.com/in/azeckoski http://aaronz-sakai.blogspot.com/ - http://confluence.sakaiproject.org/confluence/display/~aaronz/
