title: Spring util properties in app-context xml file
body: <p>I am describing properties file in <code>app-context.xml</code> like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:jdbc="http://www.springframework.org/schema/jdbc"
      xmlns:task="http://www.springframework.org/schema/task"
      xmlns:util="http://www.springframework.org/schema/util"
      xsi:schemaLocation="
          http://www.springframework.org/schema/beans 
          http://www.springframework.org/schema/beans/spring-beans.xsd
          http://www.springframework.org/schema/context 
          http://www.springframework.org/schema/context/spring-context.xsd
          http://www.springframework.org/schema/jdbc 
          http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
          http://www.springframework.org/schema/task
          http://www.springframework.org/schema/task/spring-task.xsd
          http://www.springframework.org/schema/util 
          http://www.springframework.org/schema/util/spring-util.xsd"&gt;
  
  
      &lt;context:annotation-config&gt;&lt;/context:annotation-config&gt;
  
      &lt;task:annotation-driven /&gt;
  
  
      &lt;util:properties id="properties" location="file:/opt/vortal/VortalDataProvider/config/votral.properties"&gt;&lt;/util:properties&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>in any java file I am able to access this file through:</p>
  
  <pre><code>@Autowired
  @Qualifier("properties")
  private Properties properties;
  </code></pre>
  
  <p>However when I try to access properties in <code>camel-context.xml</code></p>
  
  <p>like:</p>
  
  <pre><code>&lt;cxf:rsClient id="vortalEndpoint" address="${endpointUrl}" 
       serviceClass="pl.test.dataprovider.Processor"
       skipFaultLogging="false"/&gt; 
  </code></pre>
  
  <p>value of bean <code>vortalEndpoint</code> is literally <code>${endpointUrl}</code> - value from poperties is not read. </p>
  
  <p>What am I doing wrong?</p>