2013-04-04 139 views
1

我在ESB中创建了主题,ESB中创建的代理订阅了此主题。在我的代理中,我提供了我在WSO2 Message Broker中创建的队列端点。所以当我在我的队列中发布正在被代理订阅的消息时,消息应该进入MB的队列,但这不会发生。我该怎么做才能做到这一点?我的代理代码是:如何将消息从ESB的主题发送到消息代理的队列

<proxy xmlns="http://ws.apache.org/ns/synapse" name="CNN" transports="http" statistics="disable" trace="disable" startOnLoad="true"> 
    <target> 
     <inSequence> 
     <log level="custom"> 
      <property name="STATE" value="message is sent to queue"/> 
     </log> 
     <property name="OUT_ONLY" value="true"/> 
     <property name="FORCE_SC_ACCEPTED" value="true" scope="axis2"/> 
     </inSequence> 
     <outSequence/> 
     <endpoint> 
     <address uri="jms:/CNN?&transport.jms.DestinationType=queue"/> 
     </endpoint> 
    </target> 
    <description></description> 
</proxy> 

我应该做的,这样,当我在话题发表我的消息应该是可见的消息代理排队?

回答

0
+0

感谢您的回复谢兰。我已经通过这个博客,但我仍然没有得到esb的主题的目的。现在我正在浏览这个链接:http://wso2.org/library/knowledge-base/2012/06/publishing-messages-message-broker-using-event-mediator。但是我又碰到了这个链接,因为我的MB版本2.0.0不支持MessageBox。那么它的替代方案是什么?在此先感谢 – Roy 2013-04-05 04:53:55

+0

是的第二个环节已经过时了新产品。使用此文档http://docs.wso2.org/wiki/display/MB201/Integrating+WSO2+ESB并参考“使用消息存储和处理器集成”部分 – 2013-04-05 05:48:30

+0

早先的主题用于发布WS事件。但是它不再在WSO2 MB中,并且已经删除了该产品的功能。 – 2013-04-05 06:12:02