我用的是一个内置骆驼路线的ActiveMQ经纪人。我想在收到事件后读取一个文件。
<pseudo>
from Event A
read File XY
to Event B with Body from File XY
</pseuod>
我尝试根据事件从临时目录中移动文件,但只编写事件B。日志文件中没有异常或错误消息。
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<!-- You can use
问题
我有一个驼峰路径,它读取4个xml文件,并使用驼峰加密加密它们。我还有另外一种方法,可以提取这些加密的文件,解密并保存到文件系统中。它工作得非常好。
但是,我需要在一个camel路径中解密和压缩这些文件。我没能做到这一点。任何帮助都将不胜感激。
异常
Caused by: java.io.IOException: Attempted to read a '1347093252' byte initialization vector from inputStream but only '6016' bytes were retrieved
我在找出如何测试我的路由时遇到了问题,它使用了quartz在它的from my spring文件中。
<spring:route id="metricExtractionTimer" startupOrder="1">
<spring:from uri="quartz://metricExtractionTimer?fireNow=true"/>
<transform>
<simple>........... Object Added to DB ..........
无论我将数据格式放在XML蓝图中的哪个位置,我都会从不同的位置得到这个错误。如果删除它,它就能工作,但当然不能将JSON转换为POJO。???任何帮助或者告诉我我做错了什么,我错过了什么。谢谢!
错误
Unable to start blueprint container for bundle passthrumt1.core/1.0.1.SNAPSHOT
Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'e