Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4911

Fuse behaving differently when running on Karaf or JBoss EAP

XMLWordPrintable

    • % %
    • 6.3 Sprint 2 (1-Feb - 26-Feb)

      have verified, that the following snipped behaves differently, when running on EAP/Fuse and OSGi/Fuse

      -------------

      <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
      <bean id="envtest" class="com.mycompany.camel.spring.EnvPrinter">
      <property name="variable" value="${JAVA_HOME}"/>
      </bean>

      <camelContext xmlns="http://camel.apache.org/schema/spring">
      <route>
      <from uri="file:src/data?noop=true"/>
      <log message="dummy message"/>
      </route>
      </camelContext>

      -------------

      public class EnvPrinter {
      public void setVariable(String var)

      { System.out.println(">>>>>>>>>>>>>>>>>>>>>>> "+ var); }

      }

      ---------------

      On OSGi/Fuse we get the expected behaviour of the value of $JAVA being printed to Stdout. On EAP/Fuse we do get '${JAVA_HOME}' as the output.

      On https://github.com/PatrickSteiner/Environment_Test is a sample to reproduce the error.

            jnethert@redhat.com James Netherton
            psteiner_jira Patrick Steiner (Inactive)
            Tomas Turek Tomas Turek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: