Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kura-dev] Rest Servlet on Kura

Another option is to use ECF's OSGi Remote Services (you can think of OSGi Remote Services as standardized version of OSGi connector) [1] with the Jax-RS distribution provider [2].  There's a tutorial for doing this here [3].


[1] https://wiki.eclipse.org/Eclipse_Communication_Framework_Project#OSGi_Remote_Serviceshttps://wiki.eclipse.org/Eclipse_Communication_Framework_Project#OSGi_Remote_Services
[2] https://wiki.eclipse.org/Distribution_Providers#Jax-RS_REST_Providers
[3] https://wiki.eclipse.org/Tutorial:_Using_REST_and_OSGi_Standards_for_Micro_Services


From: kura-dev-bounces@xxxxxxxxxxx [kura-dev-bounces@xxxxxxxxxxx] on behalf of Woodard, David [david.woodard@xxxxxxxxxxxx]
Sent: Thursday, June 29, 2017 3:16 PM
To: Kura Developers mailing list
Subject: Re: [kura-dev] Rest Servlet on Kura

Hello,


The two most common ways of doing this are:


  1. Create servlets using the OSGi HttpService
  2. Using the JAX-RS OSGi connector [1]

The first is the easiest as all of the needed libraries are already included in Kura. The second would allow for creating true REST endpoints, but you would have to add the needed JAX-RS bundle(s) to the Kura installation.

Camel would also likely work, but I have not seen anyone try the Camel REST feature yet. If you go this route, let the mail list know as it would likely be useful for others.


Thanks,
--Dave


From: kura-dev-bounces@xxxxxxxxxxx <kura-dev-bounces@xxxxxxxxxxx> on behalf of Voller-Niederl Christian <christian.voller-niederl@xxxxxxxxxxxxx>
Sent: Thursday, June 29, 2017 1:50:14 AM
To: Kura Developers mailing list
Subject: [kura-dev] Rest Servlet on Kura
 

Hi,

 

I want to send some Json from Sensor to Kura with Rest. Is there a recommended way how to bring a RestServlet to Kura?

Maybe Camel…

 

Thanks a lot for any help…

 

 
Mit freundlichen Grüßen / Best regards

Christian Voller-Niederl
Senior Application Engineer
Corporate IT, Development

Mayr-Melnhof Karton Gesellschaft m.b.H.
Wannersdorf 80, 8130, Frohnleiten, Austria
Tel: +43 3126 2511 538 Mobile: +43 664 6253635 
Fax: +43 3126 2511 101
 
E-Mail: christian.voller-niederl@xxxxxxxxxxxxx
Homepage: http://www.mm-karton.com 
--------------------------------------------------------------------
Mayr-Melnhof Karton Gesellschaft m.b.H.
Sitz der Gesellschaft: Frohnleiten
Firmenbuch Graz: FN 62874m
UID-Nr: ATU 37002202
Geschäftsführer: Dr. Wilhelm Hörmanseder, Mag. Gernot Schleiss


Diese E-Mail enthält keine verbindlichen Erklärungen. Ausschließlich Erklärungen der vertretungsbefugten Personen der Gesellschaft sind verbindlich und wirksam.

This e-mail does not include any binding declarations. Only declarations by authorized representatives of the company shall be deemed legally enforceable and binding.


Back to the top