Hi

Learn the EIP patterns.
You should use the recipient list pattern


On Thu, Nov 4, 2010 at 12:07 AM, Mark Borner <mark.bor...@zurich.com.au>wrote:

>
> Hello all:
>
> Is it possible to use Simple expressions in the to() definition of your
> route?
>
> For example:
>
>               .to("direct:NB-${header.product}")
>
> I've been through the Camel in Action book, and the only examples I can see
> are for the "file:" component:
>
>         .to("file://riders/orders?fileName=report-${header.Date}.csv")
>
> Is this only supported on the File component?  Or should it work for all
> components?
>
> Thanks,
> Mark
>
> Mark Borner
> Java Developer - ZStream Xpress
>
>
>
>
> ----
> This email is intended for the named recipient only. It may contain
> information which is confidential, commercially sensitive, or
> copyright. If you are not the intended recipient you must not
> reproduce or distribute any part of the email, disclose its contents,
> or take any action in reliance. If you have received this email in
> error, please contact the sender and delete the message. It is your
> responsibility to scan this email and any attachments for viruses and
> other defects. To the extent permitted by law, Zurich and its
> associates will not be liable for any loss or damage arising in any
> way from this communication including any file attachments. We may
> monitor email you send to us, either as a reply to this email or any
> email you send to us, to confirm our systems are protected and for
> compliance with company policies. Although we take reasonable
> precautions to protect the confidentiality of our email systems, we
> do not warrant the confidentiality or security of email or
> attachments we receive.
>
>


-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to