[ 
https://issues.apache.org/jira/browse/CAMEL-18614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen reassigned CAMEL-18614:
-----------------------------------

    Assignee: Claus Ibsen

> Getting Route for a RouteConfiguration is null when doing manual route loading
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-18614
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18614
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 3.18.2
>         Environment: Version: Camel 3.18.2
> JDK: 11 (Temurin)
>            Reporter: Raymond
>            Assignee: Claus Ibsen
>            Priority: Minor
>         Attachments: FlowLoader.java
>
>
> 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)

Reply via email to