Hi Claus,

Yep, I'm using the control bus as follows:
<camel:camelContext id="pacsContext"
xmlns="http://camel.apache.org/schema/spring"; >

        <propertyPlaceholder id="properties"
location="file:${catalina.home}/../etc/config.properties"/>

         <camel:route id="KICK_OFF_PACS">
          <camel:from uri="file:{{local.inputDir}}?consumer.delay=5000" />
          ... process the CSV to get information in order to use my own PACS
component
                <camel:to
uri="controlbus:route?routeId=PACS&amp;action=start" />
         </camel:route>

         <camel:route id="PACS" autoStartup="false" >
         
          <camel:from uri="pacs:....... />
          ... process the retrieved files with mw own PACS component
                <camel:to
uri="controlbus:route?routeId=PACS&amp;action=stop" />
         </camel:route>

</camel:camelContext>



--
View this message in context: 
http://camel.465427.n5.nabble.com/Stop-a-route-after-execution-and-restart-it-later-tp5773311p5773316.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to