[
https://issues.apache.org/activemq/browse/CAMEL-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Krasser updated CAMEL-209:
---------------------------------
Attachment: camel-spring.patch
camel-core.patch
Attached are two patches that add content support enrichment to Camel trunk. A
Java DSL example is
{noformat}
AggregationStrategy myAggregationStartegy = ...
from("direct:start")
.enrich("direct:resource", myAggregationStrategy)
.to("mock:result");
// get additional data from this endpoint
from("direct:resource")
.transform().constant("blah");
...
{noformat}
A Spring DSL example is
{noformat}
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:start"/>
<enrich resourceUri="direct:resource"
aggregationStrategyRef="sampleAggregator"/>
<to uri="mock:result"/>
</route>
<route>
<from uri="direct:resource"/>
<transform>
<constant>blah</constant>
</transform>
</route>
</camelContext>
<bean id="sampleAggregator"
class="org.apache.camel.processor.enricher.SampleAggregator" />
{noformat}
If you don't have any objections to these patches I'll add some documentation
to the Camel Wiki.
> Content Encrichment support
> ----------------------------
>
> Key: CAMEL-209
> URL: https://issues.apache.org/activemq/browse/CAMEL-209
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Nicky Sandhu
> Fix For: 2.0.0
>
> Attachments: camel-core.patch, camel-spring.patch
>
>
> ContentEnricher
> (http://www.enterpriseintegrationpatterns.com/DataEnricher.html) support is
> needed. Here's a thread that outlines the usecase
> http://www.nabble.com/How-to-enrich-message-with-the-result-of-other-invocation-t4714129s22882.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.