Have you looked at controlbus
http://camel.apache.org/controlbus

And there is also this FAQ
http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html

On Sun, Nov 1, 2015 at 7:25 PM, Nicolas74 <nmugn...@gnubila.fr> wrote:
> Hello Camel guys
>
> /Camel version 2.15.2/
>
> I created a Camel component to be able to download files from a PACS server.
> Basically, it's the consumer (that extends the DefaultConsumer class) that
> will download the files from the server.
>
> What I'm trying to do is the following:
> 1) With the file component, I retrieve a CSV file
> 2) With a processor, I process the CSV that contains information about the
> location and name of the file(s) to download from the PACS.
> 3) Once the process is finished, I want to start the PACS route.
> 4) Retrieve the files with my own PACS component
> 5) Shutdown the PACS route until a new CSV file is processed (cf 1) 2) and
> 3) ).
>
> Everything works properly except for the shutdown of the PACS route.
> The code:
>
>
>
> I'm not able to stop my route...
>
> Any idea(s) that could help me please ? Maybe it's not the best way to
> achieve what I want to do...
>
> Best,
> Nicolas.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Stop-a-route-after-execution-and-restart-it-later-tp5773311.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition:
https://www.manning.com/books/camel-in-action-second-edition

Reply via email to