문제

By default fuse ESB gives an end point url leading with cxf. For example if i have

<jaxws:endpoint id="HTTPEndpoint"
    implementor="org.fusesource.example.PersonImpl"
    address="/PersonServiceCF"/>

End point configured in a spring bean, after deploying it as bundle, fuse will publish this end point as http://localhost:8181/cxf/PersonServiceCF?wsdl

Now i wanted to change the default leading url cxf to some thing else xyz. It should look like http://localhost:8181/xyz/PersonServiceCF?wsdl . How can I do it, I googled alot, but could not find the configuration document. Any hint is really appreciated.

도움이 되었습니까?

해결책

According to this documentation:

Changing /cxf servlet alias

By default CXF Servlet is assigned a '/cxf' alias. You can change it in a couple of ways:

a. Add org.apache.cxf.osgi.cfg to the /etc directory and set the 'org.apache.cxf.servlet.context' property, for example:

 org.apache.cxf.servlet.context=/custom

b. Use shell config commands, for example :

 config:edit org.apache.cxf.osgi   
 config:propset org.apache.cxf.servlet.context /super
 config:update
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top