Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 15762 invoked from network); 28 Sep 2009 03:14:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Sep 2009 03:14:14 -0000 Received: (qmail 38631 invoked by uid 500); 28 Sep 2009 03:14:14 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 38517 invoked by uid 500); 28 Sep 2009 03:14:13 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 38507 invoked by uid 99); 28 Sep 2009 03:14:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Sep 2009 03:14:13 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=FM_FAKE_HELO_VERIZON,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [206.46.173.1] (HELO vms173001pub.verizon.net) (206.46.173.1) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Sep 2009 03:14:04 +0000 Received: from [127.0.0.1] ([71.126.234.47]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KQN005FKVM39IGR@vms173001.mailsrvcs.net> for dev@cxf.apache.org; Sun, 27 Sep 2009 22:13:21 -0500 (CDT) Message-id: <4AC029C9.3020300@ece.neu.edu> Date: Sun, 27 Sep 2009 23:13:13 -0400 From: Demetris User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-version: 1.0 To: dev@cxf.apache.org Subject: Re: D-OSGi and REST References: <4AB9CA81.30600@ece.neu.edu> <4ABD2053.3090909@ece.neu.edu> <4ABD2118.9060007@ece.neu.edu> <25635554.post@talk.nabble.com> In-reply-to: <25635554.post@talk.nabble.com> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Sergey, sounds good - yes it is RFC 119 and you are right it is not implemented in KF as of now but I think it is in the works. For the rest I will follow up and see how far I get. Thanks again Sergey Beryozkin wrote: > Hi > > Yes, we do, it is the CXF JAXRS implementation which is embedded inside the > DOSGI RI but given that the RI is based on CXF it's probably can be > expected. But DOSGi is an open spec. > > >>> Can I conceivably run this particular REST GreeterService and its >>> >> client on any OSGi Web >> Server (how about Knopflerfish) with the JAX-RS libraries. >> > > You should have no problems publishing (RESTful) services on Knopflerfish as > the DOSGI RI DSW component relies on the OSGI ServiceListener. It won't be > possible to run the (REST GreeterService) client on Knopflerfish though > untill it implements the relevant OSGI spec (RFC 119 ?), but it should not > be too difficult to do. In meantime the only option on the client side is to > load the bundles containing code explicitly consuming a remote service > (using proxy-based or http-centric api)... > > cheers, Sergey > > > Demetris-2 wrote: > >> In other words, without trying to make this too convoluted, my question >> is do you guys use your >> own implementation of JAX-RS (instead of Jersey etc.). >> >> Thanks again >> >> Demetris wrote: >> >>> Hi Sergey, >>> >>> I followed up on your info below in the distribution baseline - >>> thanks, things are making a bit >>> more sense now. >>> >>> Can I conceivably run this particular REST GreeterService and its >>> client on any OSGi Web >>> Server (how about Knopflerfish) with the JAX-RS libraries. I do see >>> you are using Felix and >>> Equinox in your examples so I am assuming the answer is yes. >>> What do you guys add to such a service with the >>> cxf-dosgi-ri-singlebundle-distribution_1.0.0? >>> The reason I am asking is because I want to connect the REST service >>> with its client by >>> over p2p instead of over HTTP. >>> >>> Thanks >>> >>> Sergey Beryozkin wrote: >>> >>>> 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:demetris@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 >>>> >>>> >>>> >>>> >> >> > >