How to host java RESTful web service for Android app

I am looking to develop a Java REST web service to work with my Android application, which I am also developing, and I am trying to find the best option to host the service, and everything I find seems to be leading me in a different direction.

Can someone give me some advice on what would be the best way to host a java java web service? I can do linux or windows and am relatively familiar with the lamp stack and IIS.

thanks

+4
source share
3 answers

I would suggest looking at the Google App Engine for hosting and writing a service in Java. I just created several services for the application I'm working on, and it was quick and easy, and currently it is free for very generous limited use.

+3
source

So, if oyu are familiar with lamp glass, why not use php for REST service? Check out the zend REST implementation .

0
source

Giving REST access to resources stored as JPA entities is easy with Play! framework Play! framework :

Hosting: Heroku ( http://www.heroku.com ) supports Java as a language (as well as Ruby, Node.js, Clojure, Python, and Scala) and Play! as a framework, making it a good candidate if you are going to play! route; -) ... although, obviously, this is not the only use case.

Development Life Cycle: This review and this tutorial should give you a good idea of ​​the development life cycle with git and Heroku + Play ; if they come from the "regular" types of Java tool types, you may find this approach refreshing.

Integration with IDE: Play! has plugins for NetBeans, IntelliJ IDEA and Eclipse ( http://www.playframework.org/documentation/1.2/ide )

0
source

Source: https://habr.com/ru/post/1437323/


All Articles