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