Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18614

Getting Route for a RouteConfiguration is null when doing manual route loading

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.18.2
    • 3.18.4, 3.20.0
    • camel-core
    • None
    • Version: Camel 3.18.2

      JDK: 11 (Temurin)

    • Unknown

    Description

      I load the routeConfiguration like this:

       

      loader = extendedCamelContext.getRoutesLoader();
      loader.loadRoutes(resource);


      On a later moment, I like to remove or update the routeConfiguration, but I first want to check if it's already loaded. To do this, I try to get the route:



       

      List<Route> routes = context.getRoutes(); 
       
      //or
      
      Route route = context.getRoute(id);
      

       

      The route for the routeConfiguration is null and it's also not in the list. However when I would load it again it says "RouteConfiguration ID already exists".

       

       

       

      Attachments

        1. FlowLoader.java
          7 kB
          Raymond

        Activity

          People

            davsclaus Claus Ibsen
            skin27 Raymond
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: