Skip to content

Instantly share code, notes, and snippets.

@monodot
Created September 12, 2018 09:20
Show Gist options
  • Save monodot/62d14d6d08eb98178958498dfa42d1a0 to your computer and use it in GitHub Desktop.
Save monodot/62d14d6d08eb98178958498dfa42d1a0 to your computer and use it in GitHub Desktop.
Example Camel route which uses the Quartz2 component to fire every day at 12am
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
">
<bean id="processor"
class="com.cleverbuilder.cameldemos.spring.scenarios.dailytimer.PrintDocuments"/>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="quartz2://mytimer?cron=0+0+0+*+*+?"/>
<setHeader headerName="printerName">
<constant/>
</setHeader>
<setHeader headerName="printDir">
<constant>C:\print_temp</constant>
</setHeader>
<bean ref="processor" method="printDocuments"/>
</route>
</camelContext>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment