camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele <>
Subject Camel-cache usaed in Enricher Route
Date Sun, 06 Dec 2015 10:48:14 GMT
Hi everyone,

this is my scenario:

1. Receiving a file from FTP Component
2. Set it in header a correct absolute xml file path depending on file name
to parse a file
3. Enrich message with java object marshalled on xml only if the
configuration is not present in cache
3. Processing and store in MQ.

This is my configuration that doesn't work :( :

  <from uri="ftp:..."/>
  <setHeader headerName="TranscodingRulesXmlFile">
 <enrich uri="direct:ConfigurationCached"
strategyRef="MergeExchengeAggregationStrategy" />
<process ..../> 

<route id="CachingConfiguration_Route" >
     <from uri="direct:ConfigurationCached" />
			<log message="Check key $simple{in.header.CamelCacheKey}." />				
			<to uri="cache:TranscodeRulesConfigurationCache" />
					<simple>${in.header.CamelCacheElementWasFound} == null</simple>
					<log message="Configuration non presente in cache." />
					<marshal ref="myJaxb"/>
					<to uri="cache:TranscodeRulesConfigurationCache" />

MergeExchengeAggregationStrategy used to aggregate file content with
transcode rules java object.

Where is the error? Have you suggestions?

Thanks in advance
Kind Regards


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message