On 03/01/2008, tog <[EMAIL PROTECTED]> wrote:
>
>
> >Today you have to do
> >
> >from("file://some/dir").beanRef("myBean");
> >from("file://some/other/file").beanRef("myBean");
>
> Will that fetch the 2 files before executing the bean or will that execute
> twice the same bean using as input each of the files ?It will poll files in parallel from those directories/files and process them in parallel. So the first route could generate 1000 messages to call the bean and the second could maybe generate one message > I suspect we need a kind of "join" somewhere here, isn't it ? > > Then how to express the second semantic ? If you want to join the messages togeher into a single message; you could either write your own Endpoint which knows how to relate the file messages together - or you could use some kinda Aggregator http://activemq.apache.org/camel/aggregator.html -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://open.iona.com
