【发布时间】: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