Re: Enrich message with data from dynamic sql query

2012-01-25 Thread Christian Müller
Pablo, my suggestion looks like the one below: from("direct:start") .enrich("direct:enrich", myAggregationStrategie) .to("bean://doWhatEverYouWantWithTheEnrichedXML"); from("direct:enrich") .to("bean://transformMyXmlIntoAQuery") .to("jdbc://xxx"); Give it a try... Best, Christian On W

Re: Enrich message with data from dynamic sql query

2012-01-25 Thread Taariq Levack
Hi The aggregator will take in the original exchange and then also the exchange returned by the resource. Give it a try. Taariq On Wed, Jan 25, 2012 at 4:19 PM, Pablo Venini wrote: > Christian: > as I see it, the problem would occur before the aggregation > strategy; if I use a JDBC

Re: Enrich message with data from dynamic sql query

2012-01-25 Thread Pablo Venini
Christian: as I see it, the problem would occur before the aggregation strategy; if I use a JDBC endpoint, the query would have to be placed into the body of the exchange, thus replacing the original body (the XML document, which I have to use later to merge with the nodes I crea

Re: Enrich message with data from dynamic sql query

2012-01-24 Thread Claus Ibsen
> > Pablo > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Enrich-message-with-data-from-dynamic-sql-query-tp5329427p5329427.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - FuseSource Email

Re: Enrich message with data from dynamic sql query

2012-01-24 Thread Christian Müller
this message in context: > http://camel.465427.n5.nabble.com/Enrich-message-with-data-from-dynamic-sql-query-tp5329427p5329427.html > Sent from the Camel - Users mailing list archive at Nabble.com. >

Enrich message with data from dynamic sql query

2012-01-24 Thread pvenini
f the nodes). I was thinking about using the enrich statement but I don't realize how can I generate the dynamic query (using sql: or jdbc:) without loosing the original XML document. Thanks Pablo -- View this message in context: http://camel.465427.n5.nabble.com/Enrich-message-with-data-fr