ravi0809
Posts: 1
Joined: Tue Apr 25, 2017 2:40 am

Java Web App on raspberry pi

Tue Apr 25, 2017 2:43 am

I want to run a java based web app on my raspberry pi. So please can you guys suggest me a light weight java based application server for raspberry pi?

mattlewis
Posts: 107
Joined: Sat Jan 12, 2013 3:05 pm
Location: UK
Contact: Website

Re: Java Web App on raspberry pi

Thu Apr 27, 2017 10:09 pm

For web containers try one of Tomcat, Jetty or Undertow. For web frameworks Spark seems quite popular and lightweight.
http://www.diozero.com/

zacburke
Posts: 8
Joined: Tue Sep 09, 2014 9:13 am
Location: Dublin, Ireland
Contact: Website

Re: Java Web App on raspberry pi

Sun Apr 30, 2017 4:34 pm

Hi,
Just also like to add that there is a framework called Spring Boot.

This is a very popular framework for building java based applications, and if you choose to build a web application with the framework it comes with an embedded version of tomcat,or jetty , or undertow within it.
Its very simple to run, and doesn't need an install, all it needs is a JRE and you just run the jar which gets built from your development environment.
This jar file has all of the dependencies needed.
It really is that simple.
Please have a look here:
https://projects.spring.io/spring-boot/#quick-start

I have used Spring Boot many times, but I havent had the opportunity to use it on the Pi just yet. Maybe you could let us know how you get on.

-Zac

JohnAntonioCollins
Posts: 4
Joined: Mon May 01, 2017 10:45 pm

Re: Java Web App on raspberry pi

Mon May 01, 2017 11:01 pm

I am using Spring Boot on Raspberry Pi. It seems to work very well. Look at my github to see the code: https://github.com/JohnAntonioCollins/MicBotServer .
Does anybody have experience unit testing gpio methods with mock objects instead of integration testing on an actual Raspberry Pi?
Good luck with your server! :)

Return to “Java”

Who is online

Users browsing this forum: No registered users and 2 guests