When you add a route with a id, that already exists, then the old route is stopped and removed. So that is why the route seems like killed.
This is by design, as it allows to easy upgrade routes.
So I am not sure if the duplicate check is a good idea.
Ok, good to know. I checked the javadoc for the routeId() function and it didn't indicate any possible problems when setting duplicate ids.
Perhaps a simple log warning in camel would be great.
thanks again for the reply.
Edited by: jamie3 on May 24, 2012 10:47 AM
A good idea. I have added javadoc to the route id, and other parts on CamelContext to highlight this.