默认情况下,fuse ESB给出一个以cxf为前导的终点url.例如,如果我有
<jaxws:endpoint id="HTTPEndpoint"
implementor="org.fusesource.example.PersonImpl"
address="/PersonServiceCF"/>
Run Code Online (Sandbox Code Playgroud)
在Spring bean中配置的端点,在将其部署为bundle之后,fuse将发布此端点作为 http://localhost:8181/cxf/PersonServiceCF?wsdl
现在我想将默认的前导url cxf更改为其他一些xyz.应该是这样的
http://localhost:8181/xyz/PersonServiceCF?wsdl.我怎么能这样做,我googled很多,但找不到配置文件.任何暗示都非常感激.
小智 6
根据这个文件:
更改/ cxf servlet别名
默认情况下,为CXF Servlet分配一个'/ cxf'别名.您可以通过以下几种方式进行更改:
一个.将org.apache.cxf.osgi.cfg添加到/ etc目录并设置'org.apache.cxf.servlet.context'属性,例如:
Run Code Online (Sandbox Code Playgroud)org.apache.cxf.servlet.context=/custom湾 使用shell config命令,例如:
Run Code Online (Sandbox Code Playgroud)config:edit org.apache.cxf.osgi config:propset org.apache.cxf.servlet.context /super config:update
| 归档时间: |
|
| 查看次数: |
1247 次 |
| 最近记录: |