gaurav
gaurav

Reputation: 317

REST ful java web service on heroku?

how to write java REST Web service and Deploy it on heroku? Till now I just worked on simple java application on heroku, first time I am trying to deploy a web service.

Upvotes: 4

Views: 10081

Answers (2)

Jesper J.
Jesper J.

Reputation: 1003

Here's an example of a JAX-RS REST service, complete with Procfile and README for deploying to Heroku (not much to do).

https://github.com/jesperfj/jax-rs-upload-file

It uses Grizzly as embedded server and is super lightweight. Let me know what path you decide to take. Curious about what works best for you.

Upvotes: 3

James Ward
James Ward

Reputation: 29433

Spring MVC's REST support is one option that is pretty easy to use. Or you can use Play Framework's REST support. Or there are many other options. They should virtually all run on Heroku so try a few and see what works for you.

Upvotes: 8

Related Questions