【问题标题】:How to configure multiple http proxies in WSO2 ESB如何在 WSO2 ESB 中配置多个 http 代理
【发布时间】:2014-01-27 16:40:10
【问题描述】:

如何在 WSO2 ESB 中配置多个 http 代理?我有以下情况:

sender --> WSO2 ESB -+--> http-proxy-ext --> server-ext
                     |
                     +--> http-proxy-int --> server-int
                     |
                     +--> server-direct

对于外部服务器(互联网)和内部服务器(公司网络),我们有不同的 http 代理。因此,取决于我传入的消息,我必须到达不同 http 代理后面的不同服务器。

我已经知道如何在axis2.xml 中配置TransportSender,如http://docs.wso2.org/display/ESB480/Enabling+HTTP+Basic+Authentication+through+a+Proxy+Server 中所述

但这让我只能选择拥有一个全局代理。但我需要其中两个。

感谢任何提示。

问候,
马克

【问题讨论】:

    标签: wso2 wso2esb http-proxy


    【解决方案1】:

    您可以在 [1] 下找到一个示例,或者您可以使用消息中介将您的消息发送到不同的端点。

    希望对你有所帮助。

    [1]http://docs.wso2.org/display/ESB460/Sample+151%3A+Custom+Sequences+and+Endpoints+with+Proxy+Services

    [2]http://docs.wso2.org/display/ESB460/Sample+2%3A+CBR+with+the+Switch-Case+Mediator+Using+Message+Properties

    【讨论】:

    • 是的,我知道我可以将调用分发到不同的端点。但是所有基于 http 的端点都使用相同的传输,因此它们使用相同的 http-proxy。对于不同的基于 http 的端点,我需要不同的 http 代理。
    • @user3087341 我想我没有正确理解您的要求。你能解释一下你的要求吗?如果您需要为不同的端点使用不同的代理,您就不能拥有单独的代理服务吗?
    猜你喜欢
    • 2014-04-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-29
    • 1970-01-01
    • 2013-06-21
    • 1970-01-01
    相关资源
    最近更新 更多