Skip to content

Commit

Permalink
add a test case camel route for #131
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Apr 24, 2013
1 parent fd0decc commit 35c85ea
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions hawtio-web/src/test/resources/applicationContext.xml
Expand Up @@ -109,6 +109,47 @@
</route>
</camelContext>

<camelContext id="onExceptionContext" xmlns="http://camel.apache.org/schema/spring">
<onException>
<exception>java.lang.Exception</exception>
<choice>
<when>
<xpath>$foo = 'bar'</xpath>
<to uri="direct:b"/>
</when>
<when>
<xpath>$foo = 'cheese'</xpath>
<to uri="direct:c"/>
</when>
<otherwise>
<to uri="direct:d"/>
</otherwise>
</choice>
</onException>
<route id="route1">
<from uri="timer://purgeTimer?period=900000"/>
<log loggingLevel="INFO" logName="test" message="testPing..."/>
<to uri="direct:e"/>
</route>
<route id="route2">
<from uri="direct:b"/>
<log loggingLevel="INFO" logName="test" message="direct:b"/>
</route>
<route>
<from uri="direct:c"/>
<log loggingLevel="INFO" logName="test" message="direct:c"/>
</route>
<route>
<from uri="direct:d"/>
<log loggingLevel="INFO" logName="test" message="direct:d"/>
</route>
<route>
<from uri="direct:e"/>
<log loggingLevel="INFO" logName="test" message="direct:e"/>
</route>
</camelContext>


<!-- infinispan demo -->
<bean id="infinispanFactory" class="io.hawt.example.infinispan.InfinispanDemo" init-method="init" lazy-init="false"/>
</beans>

0 comments on commit 35c85ea

Please sign in to comment.