NGNIX对CXF的负载

NGNIX对TOMCAT的负载需要在CXF的配置文件中新增发布地址配置。

如NGNIX所在的机器的IP地址为192.168.1.10,监听的端口为8080

CXF接口的IP地址分别为192.168.1.11,192.168.1.12,端口分别为8081,8081.

那么在CXF的配置文件中需要添加的配置如下:

<!-- 配置的cxf web service的地址 -->
<jaxws:endpoint id="searchReqService"
           implementor="com.iflytek.smsshallinterface.server.SearchReqServiceSoapImpl"
           address="/HelloService.ss"
publishedEndpointUrl=”http://192.168.1.10:8080/MyInterface/ HelloService.ss?wsdl” />

红色字体为添加部分

猜你喜欢

转载自627485408.iteye.com/blog/1932041
CXF
今日推荐