I feel that direct routes wont get started automatically, they would need to get called from another route, like a timer or seda.... not sure if this helps.
Best regards Jaime -----Ursprüngliche Nachricht----- Von: Reto Peter <reto.pe...@advanceit.ch> Gesendet: Mittwoch, 24. Mai 2023 11:11 An: users@camel.apache.org Betreff: Route doesnt get started Hi I have a strange situation with a Route, which is not getting started when it is called by another Route. If the Route is not called by any other Route, it is getting started. Example: from("direct:checkClientSession") .routeId("checkClientSession") .to("log:myLogger?showAll=true") .log("check session cookie and get the correct SupGID for which the client can send data") .choice() .when(header("cookie").isNotNull()) .to("sql:SELECT SupGID from client_session WHERE SessionCookie=:#${header.cookie} AND Sessionstart >= now(3) - INTERVAL 1 DAY AND IsActive=1?outputHeader=AuthorizedSupGID&outputType=SelectOne") .log("We found a cookie: ${header.cookie}, we will now check for which SupGID the client can send exchange data") .to("direct:checkCookie") .otherwise() .log("No cookie found in the request") .process(this::returnUnauthorizedCall) .stop() .end(); If the above Route is standalone (no other routes inside the same configure method do call it) then the route will be started) If another route does call it, then it wont get started, For ex: from("direct:restImportConfirmRequest") .routeId("restImportConfirmRequest") .log("REST: IMPORT CONFIRM called") .to("direct:checkClientSession") ; Do you have any idea what could be the reason for that, or what I can do to find a solution? Regards Reto Camel: 3.20.4, Spring Boot 2.7.11