I’m new to apache-camel and know i met a problem.
I want to use simple expressions in my uri definition, but i don’t know how.
For example:
from("foo://bar").to("foo://bar?var=${header.varName}");
Is there a way to use such expressions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Bernhard
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html
Use the Recipient List EIP pattern, which allows you to compute the dynamic URI using an Expression.
For example using the Simple expression language as shown below: