camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam (Stephen Samuel)" <samspad...@gmail.com>
Subject Re: Multiple routes for same Camel From FTP Endpoint
Date Mon, 24 Sep 2012 15:28:08 GMT
You can filter the files by pattern match.

ftp://someendpoint?include=regex.xml

I have over 20 routes all reading from the same FTP directory. And each can
have different options. Each of the 20+ routes I have all move the
completed files to different subdirectories.

On 18 September 2012 11:17, raviwithyou <bytes2ravi@gmail.com> wrote:

> I am trying to create multiple routes to pick up files from a single FTP
> location. I want these routes to be running independently. But camel
> doesn't
> allow creating more than one route for the same FTP location. I believe
> that
> camel posed this restriction as there could be a clash of FTP options like
> say noop=true for one and delete=true for other. Correct me if I am
> wrong.We
> found a way to by-pass this as we created different uri for the same FTP
> loc, lets say Route 1: ftp://abc.net?localWorkDirectory=Dir1 & Route 2:
> ftp://abc.net?localWorkDirectory=Dir2This sounds like a workaround still.
> What are our options? The main aim for us is to have routes being
> independently managed within the camel context. The FTP loc. is provided by
> an external system and we cant control to have information in different
> directories either.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Multiple-routes-for-same-Camel-From-FTP-Endpoint-tp5719518.html
> Sent from the Camel - Users mailing list archive at Nabble.com.




-- 
-Sam

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message