-
1. Re: JMS Message Selectors-Are parameters possible?
davsclaus Apr 13, 2011 2:58 PM (in response to gmotts_gary.motts)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
http://camel.apache.org/properties
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.
-
2. Re: JMS Message Selectors-Are parameters possible?
gmotts_gary.motts Apr 14, 2011 1:02 PM (in response to gmotts_gary.motts)This helps....Unfotunately, I'm constrained to Fuse ESB 3.4.0.5, which currently uses camel version, 1.6.2.2-fuse by default...I need to be able to programatically stop and restart a route....any ideas?
-
3. Re: JMS Message Selectors-Are parameters possible?
davsclaus Apr 14, 2011 4:04 PM (in response to gmotts_gary.motts)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.
-
4. Re: JMS Message Selectors-Are parameters possible?
gmotts_gary.motts Apr 18, 2011 1:50 PM (in response to davsclaus)Hi Claus,
Thanks, In Camel 1.6.2 (SeviceMix 3.4.0.5) how do I get a list of the camel routes within a processor class?
The following code returns null:
DefaultCamelContext camelContext = new DefaultCamelContext();
Thanks,
Gary
Edited by: gmotts on Apr 18, 2011 1:49 PM
-
5. Re: JMS Message Selectors-Are parameters possible?
davsclaus Apr 19, 2011 9:48 AM (in response to gmotts_gary.motts)You need to get hold of the CamelContext you are using.