Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:amq="http://activemq.apache.org/schema/core"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
       http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
       http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">

  <camelContext xmlns="http://camel.apache.org/schema/spring">
    <route id="myRoute">
      <from uri="timer://foo?fixedRate=true&amp;period=5000"/>
      <setBody>
        <simple>Hello from Camel route</simple>
      </setBody>
      <log message="Received payload: ${body}"/>
    </route>
  </camelContext>

</beans>
New to GrepCode? Check out our FAQ X