camel-quarkus icon indicating copy to clipboard operation
camel-quarkus copied to clipboard

[Camel 3.19.0] Quartz: solve autowired scheduler properly and remove quick workaround

Open JiriOndrusek opened this issue 2 years ago • 2 comments

Change in Camel (https://issues.apache.org/jira/browse/CAMEL-18143) is not compatible with the Quarkus Quartz extension.

Once the scheduler is autowired, scheduler from the Quarkus is instantiated and detects a problem (see code).

Ideal solution would be to not produce a scheduler if there is no configuration requiring it.

If the right solution is done, please remove quick workaround from the application.properties of the Quartz test module.

#quick workaround caused by https://issues.apache.org/jira/browse/CAMEL-18143
camel.component.quartz.autowired-enabled = false

JiriOndrusek avatar Sep 07 '22 13:09 JiriOndrusek

The same workaround is appliad alsi in file tests. It has to be removed once problem is solved properly - https://github.com/apache/camel-quarkus/blob/camel-main/integration-tests/file/src/main/resources/application.properties

JiriOndrusek avatar Sep 09 '22 06:09 JiriOndrusek

Enhancement proposed on Quarkus as https://github.com/quarkusio/quarkus/issues/27929

JiriOndrusek avatar Sep 14 '22 12:09 JiriOndrusek