Reputation: 25
I am completely new to web services. I am trying to learn Spring. I did the tutorial to implement a simple web service with spring as given in the following link Spring Restful Web Service Tutorial. It worked fine in localhost, but my question is how can I publish this web service on any hosting server? I mean with this, to access the web service over the internet with a URL instead of localhost!
Thanks for your helps
Upvotes: 0
Views: 410
Reputation: 9102
The link you followed deployed the web service in embedded tomcat container in the same process in which the main program ran. This is usually very helpful for quick prototype to understand the concepts and working of the program but of course in real world you would need hosting provider for the server in which your web service would run.
Upvotes: 1
Reputation: 918
In order to access your WebService over the internet, you need it to be hosted on a Java hosting provider. If you have a static IP, you can try to host it yourself although I would not recommend it.
You can do a quick google search for java web hosts if you want to find one, but they aren't usually free.
( See related SO post )
Upvotes: 2