Hi, We are using Camel 2.17.3 (blueprint) with Karaf 4.0.7
I would like to know if there is a way to exclude a "from" endpoint from a route by a configuration property. The reason is that we have many different environments and not all type of endpoint exists in the environments. A simple example: We always have a file input to be able to manually trigger messages. And in this example we also have an sftp endpoint <camelContext xmlns="http://camel.apache.org/schema/blueprint"> <route> <from uri="file:inputDirectory"/> <from uri="sftp:{{sftpserver}}/{{directory}}?username={{username}}&password={{password}}"/> <to uri="file:outputDirectory"/> </route> </camelContext> We do not have an sftp server in each environment. So I would like to disable/remove the sftp input endpoint by some environment configuration. I have tried to use "<choice>" with some "{{ }}" variable but I ended up with illegal xml. A possibility could be to make the whole uri in the second route configurable, but I would like to avoid that. Any suggestions? /Michael -- View this message in context: http://camel.465427.n5.nabble.com/Dynamically-remove-from-endpoint-tp5791687.html Sent from the Camel - Users mailing list archive at Nabble.com.