So you want to split [1] the list into Key-Value-Pairs and do a content based routing [2]?
Jan [1] http://camel.apache.org/splitter.html [2] http://camel.apache.org/content-based-router.html > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] > Gesendet: Montag, 24. Oktober 2016 09:48 > An: [email protected] > Betreff: Dynamic routing based on collection values > > Hello All, > > Can someone help me with a solution for this problem: > > I want to route to different destinations based on the values that are > present in the collection. For example, I've a map/any other collection > with list of different values. I want to iterate over the collection > and want to route the message to different destination based on the > value of the collection. > > Assume that my map contains below keys and values: > > Map<String, List<String>> myMap = new HashMap<String, > List<String>>(); > > I would like to iterate over the map and based on key I wanted to pass > on the corresponding value list to a different route. Like: > > If (Key == "Hyderabad") then route to Hyderabad uri etc. > > Your help is much appreciated, Thank you. > > Best, > Raghavender Anthwar > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Dynamic-routing-based-on-collection- > values-tp5789157.html > Sent from the Camel - Users mailing list archive at Nabble.com.
