Hi Mikael When I've had to do things like this I use recipientList. Maybe worth a try?
-----Original Message----- From: Mikael Andersson Wigander <mikael.grevs...@gmail.com> Sent: Thursday, 23 April 2020 10:06 To: users@camel.apache.org Subject: Camel Endpoint DSL Hi How can I combine the endpoint DSL with dynamic property definitions such as: final String toStr = "{{shuttle.ftp.outgoing.url}}" + "&username={{shuttle.ftp.username}}" + "&password={{shuttle.ftp.password}}" + "&allowNullBody=false" + "&consumer.bridgeErrorHandler=true" + "&throwExceptionOnConnectFailed=true" + "&pollStrategy=#defaultPollStrategy"; from("{{shuttle.outgoing.transactions}}") .routeId("Sending-SHUTTLE-FTP") .autoStartup("{{shuttle.ftp.outgoing.startup}}") .wireTap("seda:ping") .to(toStr) .log("XML file(s) sent") .end(); What I’d like is to have the option to have our DEV environment setup using say FTP but in INTEGRATION and PROD it will be SFTP. Since the endpointDSL is somewhat “hardcoding” the endpoint I don’t really know how to do it Thx M