You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Raymond (Jira)" <ji...@apache.org> on 2022/10/15 06:32:00 UTC

[jira] [Created] (CAMEL-18614) Getting Route for a RouteConfiguration is null

Raymond created CAMEL-18614:
-------------------------------

             Summary: Getting Route for a RouteConfiguration is null
                 Key: CAMEL-18614
                 URL: https://issues.apache.org/jira/browse/CAMEL-18614
             Project: Camel
          Issue Type: Bug
    Affects Versions: 3.18.2
         Environment: Version: Camel 3.18.2

JDK: 11 (Temurin)
            Reporter: Raymond


I load the routeConfiguration like this:

 
{code:java}
loader = extendedCamelContext.getRoutesLoader();
loader.loadRoutes(resource);{code}
{color:#cc7832}
{color:#172b4d}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:
{color}
{color}

 
{code:java}
List<Route> routes = context.getRoutes(); 
 
//or

Route route = context.getRoute(id);
{code}
 

{color:#172b4d}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".{color}

 

 

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)