...
Code Block |
---|
from("activemq:queue:special").noAutoStartup().to("file://backup"); |
And to explicit state it should be started
To startup based on a boolean, String or Property, do one of the following:
Code Block |
---|
boolean startupRoute = true;
from("activemq:queue:special").autoStartup(startRoute).to("file://backup");
...
String startupRoute = "true";
|
Code Block |
from("activemq:queue:special").autoStartup(startRoute).to("file://backup"); ... from("activemq:queue:special").autoStartup("{{startupRouteProperty}}").to("file://backup"); |
In XML DSL you define it as follows:
...