简体   繁体   中英

apache cxf - specify endpoint url

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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