configuring web service from java program

时间:2015-06-26 09:27:01

标签: java web-services

I want to build a simple java web application from which I wish to change configuration of my web services like port number , protocol etc. Also start and stop them from the java program only.

Is it possible ?

As far I know I think changing the port requires changing the tomcat port and then restart it . So Is it possible to achieve using a java application.

Also how can I get my service work on soap and rest as per user's wish using java application.

1 个答案:

答案 0 :(得分:0)

You can start with Apache CXF. It is simple to understand and with less configuration you can make your webservice up.

For controlling the tomcat like start and stop of the server, see this