Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从(amq)获取消息并写入(某个文件)。我能够从 AMQ 获取消息但无法创建文件。请告诉我哪里有问题这是我的路线。
from("test-jms:queue:Test-AMQ").to("file:test?doneFileName=${file:name}.done");
请参阅此单元测试以获取工作示例:
https://svn.apache.org/repos/asf/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteToFileTest.java