jamesnetherton commented on issue #2344:
URL: https://github.com/apache/camel-quarkus/issues/2344#issuecomment-803899103


   I had a quick look at this. The problem seems to be that the endpoint 
`autowiredEnabled` URI option has no effect. `AutowiredLifecycleStrategy` kicks 
in when `onComponentAdd` runs and is checking 
`CamelContext.isAutowiredEnabled()`.
   
   Camel is trying to do autowiring on `cacheContainer` and it finds the 
unconfigured Quarkus `RemoteCacheManager` via the registry lookup (I.e the one 
created by the Quarkus Infinispan extension). The bean initialisation from Arc 
then triggers the exception you saw.
   
   The workaround for the standalone example project would be to set property 
`camel.context.autowired-enabled = false` and the `RemoteCacheManager` setup 
will be done by Camel. Or let Quarkus handle the configuration by setting the 
properties mentioned [here](https://quarkus.io/guides/infinispan-client). I 
guess neither is possible via the Kamelet definition though? 
   


-- 
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]


Reply via email to