This content has been marked as final.
Show 4 replies
-
1. Re: Route with same routeId killing previous route
davsclaus May 23, 2012 11:50 PM (in response to jamie3_james.archibald)The routeId must be unique. I guess we should add a better early duplicate detection.
I added a ticket to track this
-
2. Re: Route with same routeId killing previous route
davsclaus May 24, 2012 1:44 AM (in response to jamie3_james.archibald)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.
-
3. Re: Route with same routeId killing previous route
jamie3_james.archibald May 24, 2012 6:47 AM (in response to davsclaus)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
-
4. Re: Route with same routeId killing previous route
davsclaus May 24, 2012 8:11 AM (in response to jamie3_james.archibald)A good idea. I have added javadoc to the route id, and other parts on CamelContext to highlight this.