title: Camel custom PropertiesComponent
body: <p>I'm trying to configure a custom PropertiesComponent for my CamelContexts via Spring. According to <a href="http://camel.apache.org/properties.html" rel="nofollow">this</a> page, I simply need to add a bean definition of type <code>org.apache.camel.component.properties.PropertiesComponent</code>. However, my CamelContext isn't picking it and I can't seem to find a way to reference the bean from within the CamelContext. I just keep getting the following error:</p>
  
  <pre><code>PropertiesComponent with name properties must be defined in CamelContext to support property placeholders.
  </code></pre>
  
  <p>How can add a PropertiesComponent to the context via Spring? (I do <strong>not</strong> want to use the <code>propertyPlaceholder</code> tag.)</p>
  
  <p>What I have so far. (I'll subclass PropertiesComponent as soon as I can get this working.)</p>
  
  <pre><code>&lt;bean id="properties" class="org.apache.camel.component.properties.PropertiesComponent"&gt;
      &lt;property name="location" value="classpath:props.properties" /&gt;
  &lt;/bean&gt;
  
  &lt;camelContext xmlns="http://camel.apache.org/schema/spring" id="eventService"&gt;
      &lt;routeBuilder ref="httpInbound" /&gt;
  &lt;/camelContext&gt;
  </code></pre>