Hello people of the world!
I'm an Android developer and so far I've worked only on the client side. My next project is in need of a server to communicate with and I wanna try to build it myself.
Can someone give me direction to a good source of learning how to build a nice, small and simple Java restful server?
I've looked around, there is way too much info out there and it's confusing. Maybe one of you was in my shoes already and know a good source for it?
First of all you should read up on and learn how to use Jersey. This is the best implementation of JAX-RS API (REST for Java).
You will also need a good HTTP server and Java Servlet container. For that I'd advise you to use Jetty. Here are a few good tutorials:
You asked for a "simple server", however if you're looking for high performance then read this tutorial: Javarants: Using JAX-RS with Protocol Buffers for high-performance REST APIs, and use the Grizzly container instead of Jetty:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With