Its just a string so you can concat that
String s = "xxxx AND " + status + " is true"
You can also use property placeholders for endpoint uris in Camel
Mind that the endpoint uri is computed once, so if the state variable changes, the endpoint uri is not updated. For that you would need to stop the route, adjust the endpoint, and start the route again.
This helps....Unfotunately, I'm constrained to Fuse ESB 126.96.36.199, which currently uses camel version, 188.8.131.52-fuse by default...I need to be able to programatically stop and restart a route....any ideas?
In Camel 1.x you should be able to access the running routes from CamelContext. It ought to have a getRoutes() method or something like that. Then you can find the route you want to stop. And then invoke the stop method on it. You may have to find the Consumer if the Route doesn't have a stop() method.
I dont have the Camel 1.x API handy here in the late hours.
Thanks, In Camel 1.6.2 (SeviceMix 184.108.40.206) how do I get a list of the camel routes within a processor class?
The following code returns null:
DefaultCamelContext camelContext = new DefaultCamelContext();
Edited by: gmotts on Apr 18, 2011 1:49 PM
You need to get hold of the CamelContext you are using.