Where to host a Restful web service in JAVA in shared hosting solutions

狂风中的少年 提交于 2019-12-01 02:24:26

问题


I have just finished developing a REST web service that is consumed by a mobile application. The web service is developed with Java and runs on an Apache server.

I'm now moving to the testing part. And for that purpose, I need to host my web service in a real server. It is a first experience for, and I just knew that using mutualised (shared) hosting does not allow me to host whatever application, in whatever language.

The one I get to use is OVH, which does not support java web services hosting.

Does anybody have any other alternative to provide. It would help a lot!!


回答1:


Like I said, if it is for testing purposes you could always use a "normal" PC, running something like XAMPP.

As an alternative you could give RedHat's OpenShift a try, which offers a free, getting-started plan (more info here) that should more than cover your testing requirements.




回答2:


To run your app (in Eclipse) you would need to : Run As -> Run on Server And then select a server. If you haven't done so; I suggest you install a local JBoss/WildFly server (the wizard can take care of that for you). Doing this will display options to run your app either on the local or the OpenShift/rhcloud server.This makes testing faster and allow you to avoid testing on the OpenShift live server.



来源:https://stackoverflow.com/questions/16523107/where-to-host-a-restful-web-service-in-java-in-shared-hosting-solutions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!