Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16382

Unable to disable autowiring on Infinispan component

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7.0, 3.8.0
    • Fix Version/s: 3.9.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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:

      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
      

      The background to this is from investigating https://github.com/apache/camel-quarkus/issues/2344.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              jamesnetherton James Netherton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: