Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Using Jetty server in Kura
Using Jetty server in Kura [message #1753283] Fri, 03 February 2017 10:12 Go to next message
Sabrina anirbas is currently offline Sabrina anirbasFriend
Messages: 45
Registered: April 2015
Member
Hello,

I saw that there is a Jetty server in Kura, the one that is used for the administration interface.

How can I use it to my local web application? how can I add my own servlet?

Thanks!

Sabrina
Re: Using Jetty server in Kura [message #1753285 is a reply to message #1753283] Fri, 03 February 2017 10:20 Go to previous message
Benjamin Cabé is currently offline Benjamin CabéFriend
Messages: 201
Registered: July 2009
Location: Toulouse, France
Senior Member

Hi Sabrina,

You can easily register your own servlets by manipulating the HttpService in your OSGi component.

See https://github.com/kartben/kura-sigfox-gateway/tree/master/org.eclipse.iot.kura.sigfox-mqtt.gateway for an example, where servlet and resources are mounted in the following component: https://github.com/kartben/kura-sigfox-gateway/blob/master/org.eclipse.iot.kura.sigfox-mqtt.gateway/src/main/java/org/eclipse/iot/kura/sigfox_mqtt/SigfoxGatewayComponent.java


Previous Topic:modbus TCP/IP ADU send problem
Next Topic:Using Kura without Web UI
Goto Forum:
  


Current Time: Tue Sep 24 04:56:49 GMT 2024

Powered by FUDForum. Page generated in 0.02793 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top