It works on the file component because you can use it to dynamically specify the filename. What you're trying to do with the direct component is dynamically specify an in-vm endpoint address. This isn't possible. There are other ways to do this kind of routing, like recipient list.
----- Richard Kettelerij, http://github.com/rkettelerij -- View this message in context: http://camel.465427.n5.nabble.com/Fw-Simple-Expressions-in-to-Definitions-tp3249333p3250936.html Sent from the Camel - Users mailing list archive at Nabble.com.