You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (JIRA)" <ji...@apache.org> on 2017/10/24 08:50:00 UTC

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

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

Andrea Cosentino resolved CAMEL-11925.
--------------------------------------
    Resolution: Fixed

> 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
>            Assignee: James Netherton
>             Fix For: 2.20.1, 2.21.0
>
>
> 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)