camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Loading multiple files from the same directory
Date Fri, 15 Jul 2011 05:20:51 GMT
On Thu, Jul 14, 2011 at 11:20 AM, divanmostert <divan.mostert@c24.biz> wrote:
> Hi,
>
> We have recently upgraded to Camel 2.7 where File Endpoints can no longer
> specify file names as the source, only directories and then additionally
> setting the filename property.

btw you can set includes/excludes/ant path filters/custom filters and
much more as well
http://camel.apache.org/file2


>
> This works fine for when we are only load ing one file at a time, however,
> our application do transforms that require us to load multiple files, which
> could all be in the same directory. This of course causes Camel to throw an
> exception saying:
>
> org.apache.camel.FailedToStartRouteException: Failed to start route route19
> because of Multiple consumers for the same endpoint is not allowed:
> Endpoint[file:///...]
>
> Is there any way of getting around this?
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Loading-multiple-files-from-the-same-directory-tp4585994p4585994.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



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

Mime
View raw message