Found a mistake in the original post:
Tony Su wrote > > if (removed != null) > { > logger.debug("EP not removed: {}", uri); > } > This should be: if (removed != null) { logger.debug("EP not removed: {}", uri); } Output is: removing EP: jmsvm://topic:CORE_REQUEST_USRMGM removing EP: jmsvm://topic:CORE_ADD_USRMGM This indicates that removeEndpoints should have succeeded, but an examination of the context indicates that the endpoint is still present. Using context.AddRoutes() to add routes with the same endpoints results in duplicate endpoints present in the context. -- View this message in context: http://camel.465427.n5.nabble.com/Problem-Removing-Endpoints-tp5455029p5455127.html Sent from the Camel - Users mailing list archive at Nabble.com.