File consumer deletes file after processing first endpoint in multicast

2012-10-03 Thread smokemaker
Hi, all! Could you help me find a mistake in following case: file consumer with "delete=true" in options multicasts exchange to several destinations. But when exchange is processed in first destination, the file is being deleted, so the second can't get the File from GenericFile. Routes are: fro

Catch NoSuchComponentException in org.apache.camel.impl.CompositeRegistry#lookup

2013-03-06 Thread smokemaker
Hi, all! I use Camel 2.10.3 in ServiceMix 4.5.0 Could someone please explain how to use org.apache.camel.impl.CompositeRegistry? I've got CamelContext, defined in bundle "A" and want to dynamically add to it a registry for resolving components from bundle "B". 1. I get the context's registry: