So why not use the for loop to create as many routes as you want? I use that method frequently.
*Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39* On Wed, Oct 2, 2013 at 10:02 AM, mamouros <csst0...@yahoo.gr> wrote: > I can't see how this can help me. I don't want to listen for one exchange > only and move on. I want to listen forever. > When I say "create routes dynamically" I mean I would like to open as many > smpp receivers as accounts are in my database. > After the from(sql:) I want the routes to be a to(bean:) that have a > while(true) loop with a consumer.receive() method inside making me able to > listen to incoming deliver_sm all the time (which is what the consumer will > receive) but I get the account credentials from the database and I would > also like to check for any new accounts in the database every now and then > so I can create another route receiving to that account. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Creating-routes-dynamically-like-a-for-tp5740703p5740764.html > Sent from the Camel - Users mailing list archive at Nabble.com. >