That sounds like too much effort. I liked the simpler solution you got yesterday a whole lot better.
On 04 Sep 2012, at 5:10, Naveen Raj <naveenra...@gmail.com> wrote: > hi, > The camel enrich processor needs an aggregation strategy to be > implemented,where I need to implemented my own bean to enrich.The scenario > that I want to implement is where an xml is inserted an element for which > the data is from the database. > > This data from the database is queried based on the few attributes from the > xml message. > > > How can I perform this using the aggregation strategy? > > I had a way in mind which is .. > > 1.Take the data from the the xml message with which I query from the db > 2.send this result as an endpoint > 3.The same endpoint is made as the resource for the enrich > 4.The parse the xml message and insert the values using dom parser > > > I would like to know if this is the only way or there can be a better way? > > Does camel provide any way of parsing the xml and insert data into a new > element? > > Can camel be used to create new element in an xml message? > > how it is different from the aggregation ?? > > what is the type of the data returned from an query using sql component? > > thanks, > Naveen > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-enrichment-tp5718573.html > Sent from the Camel - Users mailing list archive at Nabble.com.