Generate multiple from() dynamically Apache Camel RouteBuilder
问题 I was using camel-core 2.24.1 and was able to do the following: from( sources.toArray(new String[0]) ) where sources is a list of URIs that I get from a configuration settings. I am trying to update the code to use Camel 3 (camel-core 3.0.0-RC2) but the method mentioned above was removed and I can't find another way to accomplish the same. Basically I need something like: from( String uri : sources ) { // add the uri as from(uri) before continuing with the route } In case this would help