[ 
https://issues.apache.org/jira/browse/CAMEL-16382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-16382.
---------------------------------
    Resolution: Fixed

> Unable to disable autowiring on Infinispan component
> ----------------------------------------------------
>
>                 Key: CAMEL-16382
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16382
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 3.7.0, 3.8.0
>            Reporter: James Netherton
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.10.0
>
>
> Not sure if this is a general issue across all components or whether I'm 
> misunderstanding the autowiring mechanics.
> If I configure the Infinispan component to disable autowiring, 
> AutowiredLifecycleStrategy will go ahead and do it anyway.
> For example, in camel-quarkus if I set a property like:
> camel.component.infinispan.autowired-enabled=false
> I still see Camel autowire the CacheContainer into the component:
> {code}
> 2021-03-22 10:33:22,169 INFO  
> [org.apa.cam.imp.eng.AutowiredLifecycleStrategy] (main) Autowired property: 
> cacheContainer on component: infinispan as exactly one instance of type: 
> org.infinispan.client.hotrod.RemoteCacheManager 
> (org.infinispan.client.hotrod.RemoteCacheManager) found in the registry
> 2021-03-22 10:33:22,180 INFO  [org.apa.cam.mai.BaseMainSupport] (main) 
> Auto-configuration summary
> 2021-03-22 10:33:22,181 INFO  [org.apa.cam.mai.BaseMainSupport] (main)     
> camel.component.infinispan.autowiredEnabled=false
> {code}
> The background to this is from investigating 
> https://github.com/apache/camel-quarkus/issues/2344.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to