You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by santoshjoshi <sa...@gmail.com> on 2012/09/03 19:10:02 UTC
Re: HELP required Camel XML Message Enrichment
Hi
You can try with out aggregation strategy as shown below
<camel:route>
<camel:from uri="seds:xmlInputEndPoint" />
<camel:unmarshal ref="jaxbCatalogPOJO" />
<camel:bean ref="PriceInsertService" method="insertPrice" />
<camel:marshal ref="jaxbCatalogPOJO" />
<camel:log message=" xml with price tag is ${body}" loggingLevel="DEBUG"
/>
</camel:route>
where
jaxbCatalogPOJO is the POJO corrosponding to your XML file
and PriceInsertService is your service class that will pull data from
database
using the insertPrice methods which is as below,
CatalogPOJO insertPrice(CatalogPOJO catalogPOJO){
int price = FETCH PRICE FROM DB
catalogPOJO.setPrice(price);
return catalogPOJO;
--
View this message in context: http://camel.465427.n5.nabble.com/HELP-required-Camel-XML-Message-Enrichment-tp5718525p5718558.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: HELP required Camel XML Message Enrichment
Posted by Naveen Raj <na...@gmail.com>.
Thanks for the help ..I will get back to inform the success
Thanks,
Naveen Raj
--
View this message in context: http://camel.465427.n5.nabble.com/HELP-required-Camel-XML-Message-Enrichment-tp5718525p5718577.html
Sent from the Camel - Users mailing list archive at Nabble.com.