You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by AnujK <re...@gmail.com> on 2011/06/11 03:17:46 UTC

Remote Poll the Files and then launch a route

Our use case actually calls for polling all remote files, and once the poll
is complete - call another route.
I am using the PollStrategy commit count to see if the count == 0 , implying
that the files are now ftped over. Is this the right way to monitor all
files are downloaded?

How do I start a new route (B) at this time when the above route has
completed? How do I mark a route as complete?
I need the routes to be sequential. Route A followed by Route B.

The new route (B) has to parse all the downloaded files (using flatpack, I
presume), and stage the records in the database.



--
View this message in context: http://camel.465427.n5.nabble.com/Remote-Poll-the-Files-and-then-launch-a-route-tp4477641p4477641.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Remote Poll the Files and then launch a route

Posted by Claus Ibsen <cl...@gmail.com>.
CamelContext has API to start/stop routes.
The Camel in Action book chapter 13 covers this in more details, in
case you got that book.

You send send the data between the two routes using a SEDA endpoint.


On Sat, Jun 11, 2011 at 3:17 AM, AnujK <re...@gmail.com> wrote:
> Our use case actually calls for polling all remote files, and once the poll
> is complete - call another route.
> I am using the PollStrategy commit count to see if the count == 0 , implying
> that the files are now ftped over. Is this the right way to monitor all
> files are downloaded?
>
> How do I start a new route (B) at this time when the above route has
> completed? How do I mark a route as complete?
> I need the routes to be sequential. Route A followed by Route B.
>
> The new route (B) has to parse all the downloaded files (using flatpack, I
> presume), and stage the records in the database.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Remote-Poll-the-Files-and-then-launch-a-route-tp4477641p4477641.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/