Ricardo, What are you trying to do? Are you trying to programmatically stop a route from processing by removing it? If so try specifying a RoutePolicy instead. If you can explain your intention a little more we can definitely suggest options.
rgds, ste On Thu, Jan 28, 2010 at 10:37 AM, Ricardo Melo <[email protected]> wrote: > Hi, > > I'm new to camel API and I need to update or remove camel routes that have > been created. > > I've found in an example that to find current routes, I need to use the > code: > List<RouteDefinition> routes = camelContext.getRouteDefinitions(); > > I can iterate through the routes definition, however how can I see the "to" > (destination) endpoint of a route definition, to update or remove the route > I'm looking for? Where is it? > > Thanks in advance! > -- > Ricardo Britto Melo > > CFlex - Empower your Decisions > Tel: (+55 19) 3251-5211 > Rua BarĂ£o de Paranapanema, 401A > Campinas - SP > www.cflex.com.br >
