I would try to split that into two parts:
- content based router: route to another route according to the OPTION value
- transformer: as 1st step of that route create your new map

Jan

> -----Ursprüngliche Nachricht-----
> Von: prabumc...@gmail.com [mailto:prabumc...@gmail.com]
> Gesendet: Freitag, 27. September 2013 17:46
> An: users@camel.apache.org
> Betreff: Camel Routing using map message help required
> 
> 
> Hi All,
> 
> Mapmessage.setInt("TRANS_ID,112323);
> Mapmessage.setInt("ACCOUNT_ID,112323);
> Mapmessage.setInt("AMOUNT",112323);
> Mapmessage.setString("OPTION","C");
> Mapmessage.setInt("DATE",11/2/2013);
> 
> I have set above value in map messages and messages reached Queue1
> 
> I want implement below logic in camle routing. To route messages from
> Queue1 to Queue2
> 
> 1.In Queue1 map message key OPTION is "C",I want create new map
> messages set account_ID value only
>   forward that map messages into Queue2.
> 
> Please kindly help
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-
> Routing-using-map-message-help-required-tp5740305.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to