Modified: websites/production/camel/content/timer.html
==============================================================================
--- websites/production/camel/content/timer.html (original)
+++ websites/production/camel/content/timer.html Thu Sep 14 19:25:46 2017
@@ -101,18 +101,18 @@
<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
from("timer://foo?fixedRate=true&period=60000").to("bean:myBean?method=someMethodName");
]]></script>
</div></div><div class="confluence-information-macro
confluence-information-macro-tip"><span class="aui-icon aui-icon-small
aui-iconfont-approve confluence-information-macro-icon"></span><div
class="confluence-information-macro-body"><p>Instead of 60000 you can use
period=60s which is more friendly to read.</p></div></div><p>The above route
will generate an event and then invoke the <code>someMethodName</code> method
on the bean called <code>myBean</code> in the <a shape="rect"
href="registry.html">Registry</a> such as JNDI or <a shape="rect"
href="spring.html">Spring</a>.</p><p>And the route in Spring DSL:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[ <route>
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[ <route>
<from
uri="timer://foo?fixedRate=true&amp;period=60000"/>
<to uri="bean:myBean?method=someMethodName"/>
</route>
]]></script>
</div></div><h4 id="Timer-Firingassoonaspossible">Firing as soon as
possible</h4><h4 id="Timer-AvailableasofCamel2.17">Available as of Camel
2.17</h4><p>You may want to fire messages in a Camel route as soon as possible
you can use a negative delay:</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[ <route>
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[ <route>
<from uri="timer://foo?delay=-1"/>
<to uri="bean:myBean?method=someMethodName"/>
</route>]]></script>
</div></div><p>In this way the timer will fire messages immediately.</p><p>You
can also specify a repeatCount parameter in conjunction with a negative delay
to stop firing messages after a fixed number has been reached.</p><p>If you
don't specify a repeatCount then the timer will continue firing messages until
the route will be stopped. </p><h4 id="Timer-Firingonlyonce">Firing only
once</h4><p><strong>Available as of Camel 2.8</strong></p><p>You may want to
fire a message in a Camel route only once, such as when starting the route. To
do that you use the repeatCount option as shown:</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[ <route>
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[ <route>
<from uri="timer://foo?repeatCount=1"/>
<to uri="bean:myBean?method=someMethodName"/>
</route>
Modified: websites/production/camel/content/transactionerrorhandler.html
==============================================================================
--- websites/production/camel/content/transactionerrorhandler.html (original)
+++ websites/production/camel/content/transactionerrorhandler.html Thu Sep 14
19:25:46 2017
@@ -123,7 +123,7 @@ from("jms:queue:foo").transact
</div></div>
<p>And in Spring DSL:</p>
<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
+<script class="brush: java; gutter: false; theme: Default"
type="syntaxhighlighter"><![CDATA[
<route>
<from uri="jms:queue:foo"/>
<transacted/>