Apache cxf - specify endpoint url

I have a tomcat instance running on port 8080 and an apache cxf web service running on the / services path. Now I do not want to open this tomcat server directly, so I use nginx as my proxy server in port 80. The problem is that the webservice endpoint belongs to the tomcat server, so it is still on port 8080.

Is it possible to change this endpoint url so that the client request goes to the nginx proxy?

Thank.

+3
source share
1 answer
<jaxws:endpoint id="aWebService"
    implementor="package.class"
    address="adressOfYourServer/nameOfYourService">

</jaxws:endpoint>

He works for me

+3
source

All Articles