Apache camel Apache Camel不向ActiveMQ队列发送任何内容
我想将xml文件内容发送到队列。现在我正在使用此配置:Apache camel Apache Camel不向ActiveMQ队列发送任何内容,apache-camel,fuseesb,apache-servicemix,Apache Camel,Fuseesb,Apache Servicemix,我想将xml文件内容发送到队列。现在我正在使用此配置: <camelContext xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="file:H:/test/file"/> <recipientList> <xpath resultType="String">/data/destination/text()</xp
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="file:H:/test/file"/>
<recipientList>
<xpath resultType="String">/data/destination/text()</xpath>
</recipientList>
</route>
/数据/目的地/文本()
和我的xml文件内容:
<data>
<destination>activemq:queue:queueA</destination>
<content>7500</content>
</data>
activemq:队列:队列A
7500
此配置成功地将消息发送到queueA,但它没有内容(空消息),因此此配置有什么问题?或者有没有更好的方法将文件内容发送到队列?谢谢如果邮件正文为空,则此常见问题解答可能有助于解释原因: 您可能需要启用流缓存: