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(&quot;timer://foo?fixedRate=true&amp;period=60000&quot;).to(&quot;bean:myBean?method=someMethodName&quot;);
 ]]></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[  &lt;route&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[  &lt;route&gt;
     &lt;from 
uri=&quot;timer://foo?fixedRate=true&amp;amp;period=60000&quot;/&gt;
     &lt;to uri=&quot;bean:myBean?method=someMethodName&quot;/&gt;
   &lt;/route&gt;
 ]]></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[  &lt;route&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[  &lt;route&gt;
     &lt;from uri=&quot;timer://foo?delay=-1&quot;/&gt;
     &lt;to uri=&quot;bean:myBean?method=someMethodName&quot;/&gt;
   &lt;/route&gt;]]></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.&#160;</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[  &lt;route&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[  &lt;route&gt;
     &lt;from uri=&quot;timer://foo?repeatCount=1&quot;/&gt;
     &lt;to uri=&quot;bean:myBean?method=someMethodName&quot;/&gt;
   &lt;/route&gt;

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(&quot;jms:queue:foo&quot;).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[
 &lt;route&gt;
    &lt;from uri=&quot;jms:queue:foo&quot;/&gt;
    &lt;transacted/&gt;


Reply via email to