Skip to content

Commit

Permalink
#786: Added a camel route with quartz2.
Browse files Browse the repository at this point in the history
  • Loading branch information
davsclaus committed Dec 3, 2013
1 parent d14a1b1 commit 680a3a4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hawtio-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@
<version>${camel-version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-quartz2</artifactId>
<version>${camel-version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-all</artifactId>
Expand Down
8 changes: 8 additions & 0 deletions hawtio-web/src/test/resources/applicationContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,14 @@
<camelContext id="bar" xmlns="http://camel.apache.org/schema/spring">
</camelContext>

<camelContext id="quartCamel" xmlns="http://camel.apache.org/schema/spring">
<route>
<!-- must set -1 due bug in camel-quarz2 -->
<from uri="quartz2:mygroup/mytimer?trigger.repeatInterval=10000&amp;trigger.repeatCount=-1"/>
<log message="Quartz2 fired"/>
</route>
</camelContext>

<!-- dummy bean for camel routes -->
<bean id="myBean" class="io.hawt.camel.sample.CheeseBean"/>

Expand Down

0 comments on commit 680a3a4

Please sign in to comment.