How to remove all route definitions in camel context ...something like below
context.removeRouteDefinitions(context.getRouteDefinitions());
How to remove all route definitions in camel context ...something like below
context.removeRouteDefinitions(context.getRouteDefinitions());
Please try to call this as bean method from your route: