Hi all,

we switched to Camel 3.14. and Spring Boot 2.16.2 and since that we face
following problem:

We have a Custom EventNotifier. The bean is loaded in the SpringContext.
(checked)
But the automatic loading does not happen by camel engine. (it happens
previously with Camel 3.12)
The doStart() event from our EventNotifier never gets triggered.

Was there any change in this area?

If we call the managementStrategy.addEventNotifier() explicitly it works.
But this is only a workaround.

@Override
public void configure() throws Exception {
    super.configure();

    ManagementStrategy managementStrategy =
getContext().getManagementStrategy();
    if (!managementStrategy.getEventNotifiers().contains(notifier)) {
        log.info("Event notifier " + notifier + " is not already registered.");
        managementStrategy.addEventNotifier(notifier);
    } else {
        log.info("Event notifier " + notifier + " is already registered.");
    }

Reply via email to