I have got it working.  By trial and error.  I am not sure why I couldn't
find a working solution for Blueprint out there.  Usually indicates to me
that I was asking the wrong question.  Seems that the # in the URI is the
crucial element so that a reference to the bean is being passed to the
component and not a string.

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
           xsi:schemaLocation="
       http://www.osgi.org/xmlns/blueprint/v1.0.0
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
       http://camel.apache.org/schema/blueprint
http://camel.apache.org/schema/spring/camel-blueprint.xsd";>

  <bean
    id="myStringSerializer"
   
class="org.springframework.data.redis.serializer.StringRedisSerializer"/>

  <routeContext id="camel-redis-route-context"
xmlns="http://camel.apache.org/schema/blueprint";>

    <route id="camel-redis-route">
      <from uri="direct:redis"/>
      <log loggingLevel="INFO" message="Just about to call redis with
${in.headers}"/>
      <to
uri="spring-redis://{{redis.host}}:{{redis.port}}?serializer=#myStringSerializer"
id="callRedisWithHeaders"/>
    </route>

  </routeContext>

</blueprint>

Hope this helps someone else.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Repost-Unable-to-configure-component-spring-redis-RedisTemplate-with-Blueprint-XML-tp5784053p5784063.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to