camel-quarkus
camel-quarkus copied to clipboard
[Camel 3.19.0] Quartz: solve autowired scheduler properly and remove quick workaround
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
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
Enhancement proposed on Quarkus as https://github.com/quarkusio/quarkus/issues/27929