【问题标题】:JBoss Fuse: Using default Jetty port for CXF endpointsJBoss Fuse:为 CXF 端点使用默认的 Jetty 端口
【发布时间】:2014-05-16 06:42:35
【问题描述】:

我正在 Jboss Fuse 环境中开发基于 CXF 的 Web 服务。如果我使用 pax.web.cfg 中定义的默认 org.osgi.service.http.port=8181 是否可以,或者我应该始终在我的 cxf 端点中指定一个显式端口?

对于第一个选项,我的 cxf 端点如下所示:

<cxf:cxfEndpoint id="myWebService.endpoint"
    address="/services/WebService/1.0"
    ...

对于第二个选项,它看起来像:

<cxf:cxfEndpoint id="myWebService.endpoint"
    address="http://0.0.0.0:{port}/services/WebService/1.0"
    ...

是否允许我的所有 CXF 网络服务使用端口 8181?

【问题讨论】:

    标签: osgi-bundle fuseesb jbossfuse


    【解决方案1】:

    Web 服务地址完全可以使用默认服务端口。看起来只有在想要应用 SSL 时,我们应该使用 httpj:engine 设置服务器端 SSL。

    Link to Fuse HTTPS settings

    【讨论】:

      猜你喜欢
      • 2014-07-02
      • 2018-10-22
      • 2023-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-04
      • 2015-06-07
      • 2014-10-25
      相关资源
      最近更新 更多