You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/10/28 07:42:00 UTC
[jira] [Resolved] (CAMEL-18614) Getting Route for a RouteConfiguration is null when doing manual route loading
[ https://issues.apache.org/jira/browse/CAMEL-18614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-18614.
---------------------------------
Resolution: Fixed
> 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
> Fix For: 3.20.0
>
> 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)