If you dont want a route to start, then set autoStartup=false on it

On Fri, Aug 8, 2014 at 10:43 AM,  <prajod.vettiyat...@wipro.com> wrote:
> Hi,
>
> Isn't the question about "preventing a route from kicking in" ? We can stop a 
> route only if it has been started.
>
> Even CamelContext.suspendRoute(routeId) my not work on a route yet to start.
>
> There is a warmUp() on the inteface Route. This is called(via callback) 
> before the route starts. You can write some logic here, to prevent the route 
> from proceeding to start.
>
> Prajod
>
>
> ________________________________________
> From: Thomas Günter [tom.guen...@gmail.com]
> Sent: Friday, August 08, 2014 12:49 PM
> To: users@camel.apache.org
> Subject: Re: Preventing a route from kicking in without having to shut down 
> camel
>
> Hi,
>
> would programmatically stopping a specific route be a solution?
>
> camelContext.stopRoute(routeId);
>
>
> Regards,
> Thomas
>
>
> On Fri, Aug 8, 2014 at 5:28 AM, unklez <sanjay.subh...@gmail.com> wrote:
>
>> How do you prevent a single route from kicking in without having to shut
>> down
>> camel or impacting other in-flight routes?
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Preventing-a-route-from-kicking-in-without-having-to-shut-down-camel-tp5754923.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain proprietary, confidential or privileged information. If you are not 
> the intended recipient, you should not disseminate, distribute or copy this 
> e-mail. Please notify the sender immediately and destroy all copies of this 
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient should 
> check this email and any attachments for the presence of viruses. The company 
> accepts no liability for any damage caused by any virus transmitted by this 
> email.
>
> www.wipro.com



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to