-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Register camel <--> CDI event bridges only when observers for the events are detected #3149
Comments
Also pay attention that ideally the CamelManagementEventBridge should only return true for the events groups it wants to listen for. Its "expensive" to listen for exchange events as they are fired many times during routing. However events for starting / stopping camel context / routes are light and no problem. camel-core has been optimized to handle these two kinds and does special optimization if there are no exchange events in use. |
As today, the
CamelContextRecorder
configures theCamelContext
to automatically bridge camel events to CDI events:camel-quarkus/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelContextRecorder.java
Lines 66 to 67 in be5149c
But if no observers for such events are defined, the camel <--> CDI event bridges should not be installed.
The text was updated successfully, but these errors were encountered: