You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2021/03/22 10:54:00 UTC

[jira] [Created] (CAMEL-16382) Unable to disable autowiring on Infinispan component

James Netherton created CAMEL-16382:
---------------------------------------

             Summary: Unable to disable autowiring on Infinispan component
                 Key: CAMEL-16382
                 URL: https://issues.apache.org/jira/browse/CAMEL-16382
             Project: Camel
          Issue Type: Bug
    Affects Versions: 3.8.0, 3.7.0
            Reporter: James Netherton


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)