Re: Adding Routes dynamically

2011-04-26 Thread Jeff Segal
Great, I will add the routeId. Thanks for the quick help. On Tue, Apr 26, 2011 at 10:28 AM, Joshua Watkins < joshua.watk...@gamesys.co.uk> wrote: > You are missing using the routeId. When you create your route you need to: > > from(uri + "?splitEntries=false&consumer.initialDelay=0"). >

Re: Adding Routes dynamically

2011-04-26 Thread Joshua Watkins
You are missing using the routeId. When you create your route you need to: from(uri + "?splitEntries=false&consumer.initialDelay=0"). marshal().rss(). to("mock:result").routeId("routeId"); Then when you remove the route you use the same routeId string. I hope this

Adding Routes dynamically

2011-04-26 Thread Jeff Segal
Hi all, I have written a service bean which can add and remove Routes dynamically and I'd like to know if my approach was "kosher" in terms of best practices. It's not exactly pretty, but it does work. Here are the two classes: @Component public class RssRouter implements CamelContextAware {