Hi

Have a look please at

http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/

it is indeed virtually identical to a soap based greeter demo but
the difference is here :

http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/int
erface/src/main/java/org/apache/cxf/dosgi/samples/greeter/rest/GreeterSe
rvice.java

(note JAXRS annotations)

and here :

http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/int
erface/src/main/java/org/apache/cxf/dosgi/samples/greeter/rest/GreeterSe
rvice2.java

(has no annotations at all) but GreeterService2 uses this model :
http://svn.apache.org/repos/asf/cxf/dosgi/trunk/samples/greeter_rest/int
erface/src/main/resources/OSGI-INF/cxf/jaxrs/GreeterService2-model.xml

some more info is here :

http://cxf.apache.org/distributed-osgi-reference.html#DistributedOSGiRef
erence-ServiceProviderpropertiesForConfiguringRESTfulJAXRSbasedendpoints
andconsumers

hope it helps
Sergey



-----Original Message-----
From: Demetris [mailto:demet...@ece.neu.edu] 
Sent: 23 September 2009 08:13
To: dev@cxf.apache.org
Subject: D-OSGi and REST


Hi Sergey,

    you mentioned in the blog that users can now expose bundles/beans as

SOAP and
REST services. I looked over the example listed on the D-OSGi web site 
but both
Greeter examples are the same for SOAP and REST - unless I am missing 
something.
Do you have any examples of RESTful bundles?

Thanks

Reply via email to