Claus Ibsen created CAMEL-23805:
-----------------------------------
Summary: HTTP endpoint summary not logged on startup when
supervised route controller is enabled
Key: CAMEL-23805
URL: https://issues.apache.org/jira/browse/CAMEL-23805
Project: Camel
Issue Type: Bug
Components: camel-core
Reporter: Claus Ibsen
When using OpenAPI contract-first REST (or any platform-http routes) with
camel.routeController.enabled=true, the HTTP endpoint summary log is missing on
startup.
The endpoints work correctly, but the startup log listing them never appears.
Root cause: MainHttpServerUtil registers an EventNotifier that logs the HTTP
summary on CamelContextStartedEvent. With the supervised route controller,
routes start AFTER that event fires (in onCamelContextFullyStarted), so
platformHttpComponent.getHttpEndpoints() is empty when the summary runs. No
subsequent event re-triggers the summary after routes actually start.
Fix: fire CamelContextRoutesStartedEvent from the supervised route controller
after routes finish starting, and have MainHttpServerUtil also listen for that
event.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)