开发者

How to port this application as a web service?

I have a java application which doing some logic... ... But the java application is only a .jar application. But I would like to let it become an application on the web....I can get the param from the user, but how can I pass the param from user, and put it into my .jar, and开发者_如何学Go process and output the result to the user??

notice that the .jar application is only a console application, which don't need a user interface, only cmd lines communicated with it. Thank you.


Do you have source code? If you do, you can expose the services using JAX-WS annotations. JAX-WS is available in J2SE6. Take a look at this: http://java.sun.com/developer/technicalArticles/J2SE/jax_ws_2/

You then have to package the modified code to a WAR instead of a jar, because your application now becomes a web application. Then it will have to be hosted in an application server - Tomcat for example.


You may take a look at Metro.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜