Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » serve http within kura(is it possible to handle http requests from a component running within kura?)
serve http within kura [message #1693997] Thu, 30 April 2015 00:41 Go to next message
paul stanton is currently offline paul stantonFriend
Messages: 87
Registered: July 2009
Member
From what I can tell, Kura runs jetty to serve it's 'admin' application. Is it possible to serve other web-applications within this container? is it possible to route specific http requests to components?

I have read something that suggests it is possible however cannot find any documentation.

Advice/links appreciated. Thanks!
Re: serve http within kura [message #1694085 is a reply to message #1693997] Thu, 30 April 2015 12:40 Go to previous messageGo to next message
Amit Kumar Mondal is currently offline Amit Kumar MondalFriend
Messages: 108
Registered: March 2015
Location: Munich, Germany
Senior Member

Hi Paul,

First of all, I would like to tell you that if you want to deploy a web app in the Kura OSGi Container, there are a lot of ways. As Eclipse Kura is completely built on OSGi, you can use its OSGi Services to your web app. But right now, I would like to tell you about on developing web app using Kura OSGi.

You need to go through the following link first.
http://www.amdatu.org/components/web.html

I would like to tell you one thing that don't follow the complete BndTools setup procedure for using it. Instead of that you can download all the Amdatu bundles and put those in your eclipse plugins directory to make it available.

For writing the code, the procedure remains same as described by Amdatu.

And obviously don't forget to install the bundles in your Kura Plugins Directory in Raspberry Pi.

It will work definitely.


Amit Kumar Mondal
Email: admin@amitinside.com
Skype: arsenalnerk Blog: blog.amitinside.com
Re: serve http within kura [message #1694144 is a reply to message #1693997] Thu, 30 April 2015 21:19 Go to previous messageGo to next message
christophe mourette is currently offline christophe mouretteFriend
Messages: 2
Registered: April 2015
Junior Member
for a simple bundle with static and servlet, you can try this exemple : https://github.com/darugnaa/deployment-package-example/tree/master/org.darugna.alessandro.webexample
Re: serve http within kura [message #1694159 is a reply to message #1694085] Fri, 01 May 2015 06:33 Go to previous messageGo to next message
paul stanton is currently offline paul stantonFriend
Messages: 87
Registered: July 2009
Member
Hi Amit,

I have spent the day figuring out how to use the HttpService to route to a servlet and have it working. Can you explain what benefits amdatu has over this approach?

thanks, paul.
Re: serve http within kura [message #1694161 is a reply to message #1694159] Fri, 01 May 2015 07:29 Go to previous message
Amit Kumar Mondal is currently offline Amit Kumar MondalFriend
Messages: 108
Registered: March 2015
Location: Munich, Germany
Senior Member

Hi Paul,

Basically Amdatu wraps the all the features you need for Enterprise Cloud Application Development in their Bundles. It means you can use REST, Blob Stores, Search, MongoDB, JPA, Multi-tenancy, Email, Scheduling, Angular JS etc and you would be able to avail all the facilities in a pretty easy way by using Amdatu bundles.

You can have a look at the example.

https://bitbucket.org/amdatu/showcase/src

The motive of Amdatu was to get all the advantages of OSGi in Cloud Application Development and it fulfils all the Cloud Application Development needs.

You needed to develop a simple HTTP Service that you can do easily using simple OSGi HTTP Service but I thought it will also be good if you think of developing a proper cloud app in Kura OSGi Runtime then Amdatu can be at your rescue easily.


Amit Kumar Mondal
Email: admin@amitinside.com
Skype: arsenalnerk Blog: blog.amitinside.com
Previous Topic:Does Kura support Raspberry Pi 2 board?
Next Topic:Recommended way to build an HTTP UI on Kura
Goto Forum:
  


Current Time: Fri Apr 26 19:25:57 GMT 2024

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

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

Back to the top