Sorry XML was "nabbled".

<?xml version="1.0" encoding="UTF-8"?>

<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="redisConnectionFactory"
class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory">
    <property name="hostName" value="${redis.host}" />
    <property name="port" value="${redis.port}"/>
  </bean>

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

  <bean
    id="i4pRedisTemplate"
    class="org.springframework.data.redis.core.RedisTemplate">
    <property name="defaultSerializer" ref="stringSerializer"/>
    <property name="connectionFactory" ref="redisConnectionFactory"/>
  </bean>

  <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://x?redisTemplate=#i4pRedisTemplate"
id="callRedisWithHeaders"/>
    </route>

  </routeContext>

</blueprint>



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

Reply via email to