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.

Reply via email to