Skip to content
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

Use in an example: autowiring of beans available in the CDI container to CamelContext and components #2351

Closed
ppalaga opened this issue Mar 22, 2021 · 2 comments

Comments

@ppalaga
Copy link
Contributor

ppalaga commented Mar 22, 2021

E.g. if there is a single ExchangeFormatter instance in the CDI container, then it will automatically wire that bean to the LogComponent.

This is a feature of camel-quarkus-main, see https://camel.apache.org/camel-quarkus/latest/user-guide/bootstrap.html#_camel_main

@ppalaga ppalaga added this to the 2.0.0 milestone Jun 14, 2021
@jamesnetherton
Copy link
Contributor

I think we already have more than enough coverage for this. The ExchangeFormatter scenario is tested in core and various itests use autowiring to inject beans created by Quarkus extensions into camel components (ElasticSearch, Infinispan, Jackson, Google cloud bits etc).

@ppalaga
Copy link
Contributor Author

ppalaga commented Jun 18, 2021

This asks for an example, not for additional test coverage. But when thinking of it, I do not think this important enough for one. I guess I was carried away by the initial enthusiasm when answering the questions about examples.

@ppalaga ppalaga closed this as completed Jun 18, 2021
@ppalaga ppalaga modified the milestones: 2.0.0, No fix/wont't fix Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants