robinmag
robinmag

Reputation: 18110

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.

Upvotes: 3

Views: 1631

Answers (1)

Marouane Gazanayi
Marouane Gazanayi

Reputation: 5183

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

</jaxws:endpoint>

It's working for me

Upvotes: 3

Related Questions