I have a java program that has some number of classes. Three methods taken input A and give output B. I need to make these methods available as a web service so that I can ask something like http://test.com/method?input=A and the result B is returned. I don’t want to re-write my existing code. Is there something which is available such as a web service framework for JAVA that can allow me to create a web service interface for these three methods. What is the easiest way?
I have ran into many acronyms and other stuff during my research such as dynamic project, JAVA EE, Glassfish etc… What can implement my requirement? Thanks!
You will probably need some sort of web framework — Glassfish is one example. Basically, your application is not built to receive web requests, so you need some sort of container (e.g. a Servlet Container like Tomcat http://en.wikipedia.org/wiki/Web_container ).
I think “restlet” is a little servlet container that might suit your needs.
Check it out: http://www.restlet.org/