If you use the enrich EIP, you have to provide an Aggregation strategy to "merge" the original exchange (which contains the xml document) and the new exchange (the result of your database call if you have on). Where is the problem?
Best, Christian On Tue, Jan 24, 2012 at 7:53 PM, pvenini <pven...@mervaros.com.ar> wrote: > Hi, I'm developing a info distribution system that gets an XML document > with > data entries and then has to enrich it with nodes that are obtained from a > SQL database. The SQL query has to be generated using paramethers from data > inside the original XML document (they are properties of some of 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-from-dynamic-sql-query-tp5329427p5329427.html > Sent from the Camel - Users mailing list archive at Nabble.com. >