简体   繁体   English

从Java程序配置Web服务

[英]configuring web service from java program

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. 我想构建一个简单的Java Web应用程序,从中我希望更改Web服务的配置,例如端口号,协议等。也只能从Java程序启动和停止它们。

Is it possible ? 可能吗 ?

As far I know I think changing the port requires changing the tomcat port and then restart it . 据我所知,更改端口需要更改tomcat端口,然后重新启动它。 So Is it possible to achieve using a java application. 所以有可能使用Java应用程序来实现。

Also how can I get my service work on soap and rest as per user's wish using java application. 另外,如何使用Java应用程序按照用户的意愿在肥皂和休息上获得服务。

You can start with Apache CXF . 您可以从Apache CXF开始。 It is simple to understand and with less configuration you can make your webservice up. 易于理解,只需进行较少的配置,就可以构建Web服务。

For controlling the tomcat like start and stop of the server, see this 要像控制服务器的启动和停止一样控制tomcat,请参阅

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM