lburgazzoli commented on issue #358: Fix #136 @ConfigProperty and @Inject do 
not work in RouteBuilders
URL: https://github.com/apache/camel-quarkus/pull/358#issuecomment-548433118
 
 
   > > if people need to use MicroProfile / CDI injection then they could 
simply annotate the route with ApplicationScope
   > 
   > Maybe I am missing something trivial, but adding `@ApplicationScoped` to a 
class extending `RouteBuilder` does not make `@Inject` in that same class work. 
The itest in this PR implements exactly that scenario and I was not able to 
make it work without the proposed fix. Or you mean something else by "annotate 
the route"?
   > 
   
   I think it does not work because camel discovers it on the classpath and 
load it on ts own so it bypass ArC. 
   
   > > still need to fix the problem of having the same route discovered at 
runtime and at build time
   > 
   > Good point, let me add a test for that.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to