Hi

Which version of Camel are you using ?
I just checked the current trunk code (Camel 2.9-SNAPSHOT), and found there is an autoStartup() fluent API can be used.


On 8/31/11 8:06 AM, Damian Harvey wrote:
The docs say that you can set whether to autostart a route based on a boolean, 
string or property

from("activemq:queue:special").autoStartup(startupRoute).to("file://backup");

However it looks like autoStartup() has been removed (or never was in) the 
fluent API for RouteDefinition. What is the recommended way to decide whether 
to autoStart a route based on a property?

My requirement is that we are wanting to replace an existing integration 
platform one route at a time so would like to startup Camel with several routes 
shutdown but be able to change a properties file and have them autoStart.

Thanks,

Damian.


________________________________

This communication (and any attachments) is directed in confidence to the 
addressee(s) listed above, and may not otherwise be distributed, copied or 
used. The contents of this communication may also be subject to privilege, and 
all rights to that privilege are expressly claimed and not waived. If you have 
received this communication in error, please notify us by reply e-mail or by 
telephone and delete this communication (and any attachments) without making a 
copy.

Before opening or using attachments, you should check them for viruses and 
defects. We do not accept liability in connection with computer virus, data 
corruption, delay, interruption, unauthorised access or unauthorised amendment.



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to