Yes .. CXF should provide good jaxrs support.

See the DS REST example of CXF DOSGi
https://github.com/apache/cxf-dosgi/tree/master/samples/rest

The SOAP example also has a bndrun file that you can easily adapt to the
rest example.

Christian


2016-09-30 17:11 GMT+02:00 Peter Kriens <peter.kri...@aqute.biz>:

> If you have complex REST API needs then you better check out JAX-RS
> implementations. The purpose of the OSGi enRoute REST API is to make it as
> simple as posible to call methods from Javascript into an OSGi service. It
> was not designed to be a general purpose REST API with full mapping.
>
> The OSGi is developing a JAX-RS specification https://github.
> com/osgi/design/blob/master/rfcs/rfc0217/rfc-217-JAX-RS-Services.pdf
>
> I think CXF already has an implementation of JAX-RS.
>
> Kind regards,
>
> Peter Kriens
>
>
> On 30 sep. 2016, at 13:31, manoj.vrajam...@wipro.com wrote:
>
> Hi All,
>
> I am able to resolve 2nd part . Please help me with the first part…
>
> ·         How do I set the default root in the Using the enRoute OSGi
> REST provider ? (Basic doubt I have)
>
> ·         How do I take it to class level and method level !! Basically,
> If I want to use the same method-name for  methods of different classes,
> then how I be able to achieve this. There will be ambiguity as to which
> method has to be called?
> E.g. getStatusGet() is present in 4 different classes. (say) . If make a
> HTTP GET to http://localhost:8080/rest/StatusGet , this will give rise to
> ambiguity.
> How do I get over this problem?
>
> Please provide some pointers…
>
> Thanks,
> Manoj
>
> *From:* Manoj Venkatesh Rajamani (Product Engineering Service)
> *Sent:* 30 September 2016 13:58
> *To:* 'OSGi Developer Mail List' <osgi-dev@mail.osgi.org>
> *Subject:* RE: [osgi-dev] Help
>
> Please reply..  Gentle Reminder J
>
> *From:* Manoj Venkatesh Rajamani (Product Engineering Service)
> *Sent:* 30 September 2016 12:49
> *To:* 'OSGi Developer Mail List' <osgi-dev@mail.osgi.org>
> *Subject:* RE: [osgi-dev] Help
>
> Hi All,
>
> Please help. This is urgent..
>
> Using the enRoute OSGi REST provider
>
> 1.       How do I set the @Path annotation for my classes and methods?
> Basically, I want to differentiate *HTTP GET* catered by getFoo() methods
> present in different classes. I thought,I can do this based on URI (@Path)
> differentiation.
>
> 2.       Secondly, please let me now, how do write a postFoo()function
>  to decipher the JSON data sent via HTTP POST.
>
> Thanks,
> Manoj
>
> *From:* Manoj Venkatesh Rajamani (Product Engineering Service)
> *Sent:* 30 September 2016 12:05
> *To:* 'OSGi Developer Mail List' <osgi-dev@mail.osgi.org>
> *Subject:* RE: [osgi-dev] Help
>
> Also can someone tell me how to specify the @Path annotation. Should we
> create one in the Java package?
>
> *From:* Manoj Venkatesh Rajamani (Product Engineering Service)
> *Sent:* 30 September 2016 09:27
> *To:* OSGi Developer Mail List <osgi-dev@mail.osgi.org>
> *Subject:* RE: [osgi-dev] Help
>
> Hi All,
>
> In the upper application (QS tutorial) code:
>
> I want to perform a simple HTTP POST http://localhost:8080/rest/
>
> I send the POST request using curl using –d ‘ { Json based structure}‘ for
> some functionality.
>
> Now, How do I write a function in the Upper App so that I can read this
> json data (sent vial curl http post) ?
>
> Need urgent help.
>
> Thanks,
> Manoj
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments. WARNING: Computer viruses can be
> transmitted via email. The recipient should check this email and any
> attachments for the presence of viruses. The company accepts no liability
> for any damage caused by any virus transmitted by this email.
> www.wipro.com _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
>
>
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de>

Open Source Architect
http://www.talend.com
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to