开发者

apache cxf - specify endpoint url

开发者 https://www.devze.com 2023-02-15 10:07 出处:网络
I have an tomcat instance running at port 8080 and a apache cxf webservice running at /services path.

I have an tomcat instance running at port 8080 and a apache cxf webservice running at /services path. Now i dont want to expose this tomcat server directly so i use nginx as its proxy at 开发者_开发技巧port 80. The problem is the webservice endpoint is relative to the tomcat server so it is still at port 8080.

Is is possible to change this endpoint url so client's request will go to the nginx proxy ?

Thank you.


<jaxws:endpoint id="aWebService"
    implementor="package.class"
    address="adressOfYourServer/nameOfYourService">

</jaxws:endpoint>

It's working for me

0

精彩评论

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

关注公众号