简体   繁体   English

如何将消息从ESB的主题发送到消息代理的队列

[英]How to send Message from ESB's topic to Message broker's Queue

I have created topic in ESB, which is subscribed by the proxy created in ESB. 我已经在ESB中创建了主题,该主题由ESB中创建的代理订阅。 In my proxy i have provided the endpoint of queue that i have made in WSO2 Message broker. 在我的代理中,我提供了在WSO2消息代理中创建的队列的端点。 So when i publish message in my queue that is being subscribed by proxy the message should go to the queue of MB but this is not happening. 因此,当我在由代理服务器订阅的队列中发布消息时,该消息应转到MB队列中,但这没有发生。 What should i do to achieve this? 我应该怎么做才能做到这一点? My proxy code is: 我的代理代码是:

<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>

What should i do so that when i publish my message in topic it should be visible in Message brokers queue? 我应该怎么做,以便在主题中发布消息时在消息代理队列中可见?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM