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

Chi Kim updated CAMEL-8974:
---------------------------
    Description: 
org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer
is delegating the property parsing for camelContext to DefaultPropertiesParser.
DefaultPropertiesParse does not have support for System Properties Mode such as 
OVERRIDE, FALLBACK.

It's always taking System properties over provided properties. (OVERRIDE Mode)

DefaultPropertiesParser Line 299
{code}
private String doGetPropertyValue(String key) {
            String value = System.getProperty(key);
            if (value != null) {
                log.debug("Found a JVM system property: {} with value: {} to be 
used.", key, value);
            } else if (properties != null) {
                value = properties.getProperty(key);
            }
            return parseProperty(key, value, properties);
        }
{code}

  was:
org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer
is delegating the property parsing for camelContext to DefaultPropertiesParser.
DefaultPropertiesParse does not have support for System Properties Mode such as 
OVERRIDE, FALLBACK.

It's always taking System properties over provided properties. (OVERRIDE Mode)

DefaultPropertiesParser Line 299
private String doGetPropertyValue(String key) {
            String value = System.getProperty(key);
            if (value != null) {
                log.debug("Found a JVM system property: {} with value: {} to be 
used.", key, value);
            } else if (properties != null) {
                value = properties.getProperty(key);
            }
            return parseProperty(key, value, properties);
        }


> DefaultPropertiesParser does not support the system properties mode
> -------------------------------------------------------------------
>
>                 Key: CAMEL-8974
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8974
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.15.1, 2.15.2
>            Reporter: Chi Kim
>            Priority: Minor
>
> org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer
> is delegating the property parsing for camelContext to 
> DefaultPropertiesParser.
> DefaultPropertiesParse does not have support for System Properties Mode such 
> as OVERRIDE, FALLBACK.
> It's always taking System properties over provided properties. (OVERRIDE Mode)
> DefaultPropertiesParser Line 299
> {code}
> private String doGetPropertyValue(String key) {
>             String value = System.getProperty(key);
>             if (value != null) {
>                 log.debug("Found a JVM system property: {} with value: {} to 
> be used.", key, value);
>             } else if (properties != null) {
>                 value = properties.getProperty(key);
>             }
>             return parseProperty(key, value, properties);
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to