【问题标题】:MSMQ, distributed topology, pubsub - queue config questionMSMQ,分布式拓扑,pubsub - 队列配置问题
【发布时间】:2011-03-24 21:04:23
【问题描述】:

我正在尝试使用 msmq 和 rhino.esb 设置 pub sub。我在一台服务器上有发布者,在另一台服务器上有订阅者。当一切都设置为 localhost 在本地运行时,它工作正常。

我的问题是 - 如果这是我对本地发布者的配置:

 <facility id="rhino.esb">
            <bus threadCount="1" numberOfRetries="5" endpoint="msmq://localhost/SonaTribe.Services.Schedule.Host" />
            <messages>
                <add name="SonaTribe.Esb.Messages" endpoint="msmq://localhost/SonaTribe.Esb" />
            </messages>
        </facility>

总线和消息队列都是本地主机。

当他们在不同的机器上时,我有以下配置:

<facilities>
        <facility id="rhino.esb">
            <bus threadCount="1" numberOfRetries="5" name="schedule_host" endpoint="msmq://localhost/SonaTribe.Services.Schedule.Host" />
            <messages>
                <add name="SonaTribe.Esb.Messages" endpoint="msmq://10.0.0.164/SonaTribe.Esb" />
            </messages>
        </facility>
    </facilities>

其中一个队列是本地主机,另一个在远程机器上。这个对吗?

我能找到的所有示例都设置为在同一台机器上运行 - 这有点愚蠢,因为这样做的重点是能够分发服务吗?

w://

【问题讨论】:

    标签: msmq enterprise rhino esb publish-subscribe


    【解决方案1】:

    我不是 ESB 专家,但 MSMQ 位看起来您正在使用路径名。这些需要解析为 Active Directory 中的计算机。 IP 地址无法执行此操作,因为 AD 对 IP 地址一无所知。

    要使用 IP 地址,MSMQ 需要使用 DIRECT FormatName 寻址,例如:

    端点地址="msmq.formatname:DIRECT=TCP:10.0.0.164/SonaTribe.Esb" 或者 端点地址="msmq.formatname:DIRECT=TCP:10.0.0.164/private$/SonaTribe.Esb"

    干杯
    约翰·布雷克韦尔

    【讨论】:

    • 这里没有域。这些是亚马逊的实例。他们需要在域中吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-03-24
    • 2013-08-06
    • 2023-03-16
    • 1970-01-01
    • 1970-01-01
    • 2013-12-18
    • 1970-01-01
    相关资源
    最近更新 更多