Re: How to update/remove camel route

2010-01-29 Thread Willem Jiang
Hi, Camel provides lots of build blocks for testing, if you interest it here is the link[1]. [1]http://camel.apache.org/testing.html Willem Ricardo Melo wrote: ste, Thank you very much for the support. I'll try that solution. It's very interesting, I have never used Mock endepoints. In th

Re: How to update/remove camel route

2010-01-29 Thread Ricardo Melo
ste, Thank you very much for the support. I'll try that solution. It's very interesting, I have never used Mock endepoints. In the meantime, I've tested a simple solution that worked: remove the route, modify and add it again. :) For my needs, it worked well. Thanks! Ricardo On Fri, Jan 29, 2

Re: How to update/remove camel route

2010-01-29 Thread Stephen Gargan
Ricardo, What you're doing is very possible but you'll need to modify how you are doing it. Routes are not really meant to be modified and restarted like that, the setters are mostly for camel to initialize them in the first place. Typically you use RouteBuilders to create and initialize new Route

Re: How to update/remove camel route

2010-01-29 Thread Ricardo Melo
Hi ste, Thank you for the response. I'm developing a system where routes destination endpoint can be added/updated/removed dynamically. A received XML message specifies the operation, a route identifier name and the route destination endpoint address. After this, the camel route from the camel co

Re: How to update/remove camel route

2010-01-28 Thread Claus Ibsen
On Fri, Jan 29, 2010 at 3:13 AM, Willem Jiang wrote: > Hi, > > You can set the id on the RouteDefinition just like this > > > And use this ID to access the RouteDefinition from the CamelContext. > > And this thread[1] will help you if you are using the DSL to define the > route. > > [1]http://ol

Re: How to update/remove camel route

2010-01-28 Thread Willem Jiang
Hi, You can set the id on the RouteDefinition just like this And use this ID to access the RouteDefinition from the CamelContext. And this thread[1] will help you if you are using the DSL to define the route. [1]http://old.nabble.com/start-stop-routes-programmatically-ts26781725.html#a26781

Re: How to update/remove camel route

2010-01-28 Thread Stephen Gargan
Ricardo, What are you trying to do? Are you trying to programmatically stop a route from processing by removing it? If so try specifying a RoutePolicy instead. If you can explain your intention a little more we can definitely suggest options. rgds, ste On Thu, Jan 28, 2010 at 10:37 AM, Ricardo

How to update/remove camel route

2010-01-28 Thread Ricardo Melo
Hi, I'm new to camel API and I need to update or remove camel routes that have been created. I've found in an example that to find current routes, I need to use the code: List routes = camelContext.getRouteDefinitions(); I can iterate through the routes definition, however how can I see the "to"