How do I use dynamic URI in ToI want to use a dynamic URI when sending to an endpoint. How do I do that?
to("freemarker://templateHome/${body.templateName}.ftl")
Use the Recipient List EIP pattern, which allows you to compute the dynamic URI using an Expression.
recipientList(simple("freemarker://templateHome/${body.templateName}.ftl"))
Or use any of the other Languages. |