Patrick, take a look at Message Filter EIP, you can configure the filter clause based on properties loaded using camel:simple language.
att. *Henrique Viecili* On Fri, May 18, 2012 at 7:14 AM, prueegg <[email protected]>wrote: > I have a question concerning optional endpoints. > > Background is that I want to do something like this: > from(anyActiveMQ-Queue) > .bean(anyProcessingBean) > .to(anotherActiveMQ-Queue) > *.to(additionalFileArchiveFolder)*; // optional > > if the message should really go to the *additionalFileArchiveFolder *should > be configureable outside (within a configfile). > I will have various routes which could require an archive copy and each > route should be able to switch on/off the archive output. > > What is the best solution for this? > > Patrick > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Optional-Endpoints-tp5711824.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
