Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Host a Web Server(Need to create a bundle that host a web server)
Host a Web Server [message #1764652] Thu, 01 June 2017 07:50 Go to next message
Nicolas Besson is currently offline Nicolas BessonFriend
Messages: 2
Registered: June 2017
Junior Member
Dear Community,

I have a project for which i will develop a Kura Bundle that handle the communication with Automates and report data to the cloud using MQTT. But in addition to this I have to :
- Store in a local database a set of values
- Have a web server that allows modification of those values

Do you know any sample sample project for a local HSQL Database and for a web server, that could be used as reference for my development.
Any suggestions and good practices would be appreciate.

Regards
N.
Re: Host a Web Server [message #1764729 is a reply to message #1764652] Thu, 01 June 2017 17:29 Go to previous message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hello,

Kura already utilizes an embedded SQL database. You can read/write to the database using the DBService [1].

Kura also has a built in Jetty web server, it is used to host the Kura admin UI. You can use the OSGi HttpService to register your own resources with Jetty.

[1] http://download.eclipse.org/kura/docs/api/3.0.0/apidocs/org/eclipse/kura/db/DbService.html

Thanks,
--Dave
Previous Topic:Kura error : The type javax.microedition.io.StreamConnection cannot be resolved
Next Topic:Kura to control devices
Goto Forum:
  


Current Time: Fri Apr 19 03:16:42 GMT 2024

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

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

Back to the top