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 2017/10/19 12:52:00 UTC

[jira] [Created] (CAMEL-11925) Atmos component fails to load atmos.properties in a modular class loading environment

James Netherton created CAMEL-11925:
---------------------------------------

             Summary: Atmos component fails to load atmos.properties in a modular class loading environment 
                 Key: CAMEL-11925
                 URL: https://issues.apache.org/jira/browse/CAMEL-11925
             Project: Camel
          Issue Type: Bug
          Components: camel-atmos
    Affects Versions: 2.20.0
            Reporter: James Netherton


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

{code}
AtmosPropertyManager.class.getResource("/atmos.properties");
{code}

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|https://github.com/apache/camel/blob/master/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/util/AtmosPropertyManager.java#L26] at the top of this class. So maybe we remove this class and make it so we configure these properties on the component instead?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)