Created
September 12, 2018 09:20
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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