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

Atmos component fails to load atmos.properties in a modular class loading environment

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.20.0
    • Fix Version/s: 2.20.1, 2.21.0
    • Component/s: camel-atmos
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      The atmos component has a AtmosPropertyManager class which attempts to do:

      AtmosPropertyManager.class.getResource("/atmos.properties");
      

      This assumes the resource is available to the ClassLoader of AtmosPropertyManager. This may not be the case in OSGi or JavaEE containers.

      I see there's a TODO comment at the top of this class. So maybe we remove this class and make it so we configure these properties on the component instead?

        Attachments

          Activity

            People

            • Assignee:
              jamesnetherton James Netherton
              Reporter:
              jamesnetherton James Netherton
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: