【问题标题】:Error sending messages from jetty to the queue(use camel)将消息从码头发送到队列时出错(使用骆驼)
【发布时间】:2018-12-17 15:33:23
【问题描述】:

我使用servicemix。我正在尝试将消息从码头发送到队列,但出现以下错误: enter image description here 我的蓝图:

<camelContext xmlns="http://camel.apache.org/schema/blueprint">
  <route>
    <from uri="jetty:http://localhost:8180/test"/>
    <to uri="activemq://events_test" /> 
  </route>
</camelContext>

如果我使用从码头到文件的路线 - 一切正常

【问题讨论】:

    标签: apache-camel jetty activemq apache-servicemix


    【解决方案1】:

    Exchange pattern 你的路由是 InOut,所以你的码头消费者正在等待来自 activemq 生产者的响应。如果您有处理您的码头请求的 activemq 消费者,则会出现响应。如果 activemq 生产者不应该做出响应,而您只需将请求保存在队列中,则使用“inOnly”而不是“to”,如下所示:

    <inOnly uri="activemq://events_test" />
    

    【讨论】:

      猜你喜欢
      • 2015-05-10
      • 1970-01-01
      • 2018-09-02
      • 2020-01-29
      • 2012-10-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-15
      相关资源
      最近更新 更多