Modified: websites/production/camel/content/log.html
==============================================================================
--- websites/production/camel/content/log.html (original)
+++ websites/production/camel/content/log.html Tue Sep 22 14:26:24 2015
@@ -87,65 +87,65 @@
         <td valign="top" width="100%">
 <div class="wiki-content maincontent"><h2 id="Log-LogComponent">Log 
Component</h2><p>The <strong>log:</strong> component logs message exchanges to 
the underlying logging mechanism.</p><p>Camel uses <a shape="rect" 
class="external-link" href="http://www.slf4j.org/"; rel="nofollow">sfl4j</a> 
which allows you to configure logging via, among others:
 </p><ul><li><a shape="rect" class="external-link" 
href="http://logging.apache.org/log4j/";>Log4j</a></li><li><a shape="rect" 
class="external-link" href="http://logback.qos.ch/"; 
rel="nofollow">Logback</a></li><li><a shape="rect" class="external-link" 
href="http://java.sun.com/j2se/1.4.2/docs/api/java/util/logging/package-summary.html";
 rel="nofollow">JDK Util Logging logging</a></li></ul><h3 
id="Log-URIformat">URI format</h3><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">log:loggingCategory[?options]
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[log:loggingCategory[?options]
+]]></script>
 </div></div><p>Where <strong>loggingCategory</strong> is the name of the 
logging category to use. You can append query options to the URI in the 
following format, <code>?option=value&amp;option=value&amp;...</code></p><div 
class="confluence-information-macro 
confluence-information-macro-information"><p class="title">Using Logger 
instance from the the Registry</p><span class="aui-icon aui-icon-small 
aui-iconfont-info confluence-information-macro-icon"></span><div 
class="confluence-information-macro-body"><p>As of <strong>Camel 
2.12.4/2.13.1</strong>, if there's single instance 
of&#160;<code>org.slf4j.Logger</code> found in the Registry, the 
<strong>loggingCategory</strong> is no longer used to create logger instance. 
The registered instance is used instead. Also it is possible to reference 
particular&#160;<code>Logger</code> instance 
using&#160;<code>?logger=#myLogger</code> URI parameter. Eventually, if there's 
no registered and URI&#160;<code>logger</code> parameter, the logger ins
 tance is created using <strong>loggingCategory</strong>.</p></div></div><p>For 
example, a log endpoint typically specifies the logging level using the 
<code>level</code> option, as follows:</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">log:org.apache.camel.example?level=DEBUG
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[log:org.apache.camel.example?level=DEBUG
+]]></script>
 </div></div><p>The default logger logs every exchange (<em>regular 
logging</em>). But Camel also ships with the <code>Throughput</code> logger, 
which is used whenever the <code>groupSize</code> option is specified.</p><div 
class="confluence-information-macro confluence-information-macro-tip"><p 
class="title">Also a log in the DSL</p><span class="aui-icon aui-icon-small 
aui-iconfont-approve confluence-information-macro-icon"></span><div 
class="confluence-information-macro-body"><p>There is also a <code>log</code> 
directly in the DSL, but it has a different purpose. Its meant for lightweight 
and human logs. See more details at <a shape="rect" 
href="logeip.html">LogEIP</a>.</p></div></div><h3 
id="Log-Options">Options</h3><div class="confluenceTableSmall">
 <div class="table-wrap"><table class="confluenceTable"><tbody><tr><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Option </p></th><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Default </p></th><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Type </p></th><th colspan="1" 
rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <code>level</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>INFO</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>String</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> Logging level to use. Possible values: 
<code>ERROR</code>, <code>WARN</code>, <code>INFO</code>, <code>DEBUG</code>, 
<code>TRACE</code>, <code>OFF</code> </p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>marker</code> </p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td 
colspan=
 "1" rowspan="1" class="confluenceTd"><p> <code>String</code> </p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.9:</strong> An 
optional <a shape="rect" class="external-link" 
href="http://www.slf4j.org/api/org/slf4j/Marker.html"; rel="nofollow">Marker</a> 
name to use. </p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>groupSize</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>Integer</code> </p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p> An integer that specifies a 
group size for throughput logging.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>groupInterval</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>Integer</code> </p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>
  If specified will group message stats by this time interval (in millis) 
</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>groupDelay</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>0</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>Integer</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> Set the initial delay for stats (in 
millis) </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>groupActiveOnly</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>boolean</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> If true, will hide stats when no new 
messages have been received for a time interval, if false, show stats 
regardless of message traffic </p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>logger</code> </p></td><
 td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <code>Logger</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 
2.12.4/2.13.1:</strong> An optional reference to <a shape="rect" 
class="external-link" href="http://www.slf4j.org/api/org/slf4j/Logger.html"; 
rel="nofollow">org.slf4j.Logger</a> from Registry to use. 
</p></td></tr></tbody></table></div>
 </div><p><strong>note</strong>: groupDelay and groupActiveOnly are only 
applicable when using groupInterval</p><h3 
id="Log-Formatting">Formatting</h3><p>The log formats the execution of 
exchanges to log lines. <br clear="none"> By default, the log uses 
<code>LogFormatter</code> to format the log output, where 
<code>LogFormatter</code> has the following options:</p><div 
class="confluenceTableSmall">
 <div class="table-wrap"><table class="confluenceTable"><tbody><tr><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Option </p></th><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Default </p></th><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Description 
</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>showAll</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> Quick option for turning all options on. 
(multiline, maxChars has to be manually set if to be used) 
</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>showExchangeId</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> Show the unique exchange ID. 
</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>showExchangePattern</code> </p></td><td cols
 pan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p> Shows the Message Exchange 
Pattern (or MEP for short). </p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>showProperties</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p> Show the exchange properties. 
</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>showHeaders</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> Show the In message headers. 
</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>skipBodyLineSeparator</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>true</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <strong>Camel 2.12.2:</strong
 > Whether to skip line separators when logging the message body. This allows 
 > to log the message body in one line, setting this option to 
 > <code>false</code> will preserve any line separators from the body, which 
 > then will log the body <em>as is</em>. </p></td></tr><tr><td colspan="1" 
 > rowspan="1" class="confluenceTd"><p> <code>showBodyType</code> </p></td><td 
 > colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code> 
 > </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Show the In 
 > body Java type. </p></td></tr><tr><td colspan="1" rowspan="1" 
 > class="confluenceTd"><p> <code>showBody</code> </p></td><td colspan="1" 
 > rowspan="1" class="confluenceTd"><p> <code>true</code> </p></td><td 
 > colspan="1" rowspan="1" class="confluenceTd"><p> Show the In body. 
 > </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
 > <code>showOut</code> </p></td><td colspan="1" rowspan="1" 
 > class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" 
 > rowspan="1" class="confluence
 Td"><p> If the exchange has an Out message, show the Out message. 
</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>showException</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>false</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> If the exchange has an exception, show the 
exception message (no stack trace). </p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>showCaughtException</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>false</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> If the exchange has a caught exception, show the 
exception message (no stack trace). A caught exception is stored as a property 
on the exchange (using the key <code>Exchange.EXCEPTION_CAUGHT</code>) and for 
instance a <code>doCatch</code> can catch exceptions. See <a shape="rect" 
href="try-catch-finally.html">Try Catch Finally</a>. </p></td></tr><tr><td 
colspan=
 "1" rowspan="1" class="confluenceTd"><p> <code>showStackTrace</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>false</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> Show the stack trace, if an exchange has an exception. 
Only effective if one of <code>showAll</code>, <code>showException</code> or 
<code>showCaughtException</code> are enabled. </p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>showFiles</code> </p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <code>false</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 
2.9:</strong> Whether Camel should show file bodies or not (eg such as 
java.io.File). </p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>showFuture</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p> Whether Camel should show 
<code>
 java.util.concurrent.Future</code> bodies or not. If enabled Camel could 
potentially wait until the <code>Future</code> task is done. Will by default 
not wait. </p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>showStreams</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.8:</strong> 
Whether Camel should show stream bodies or not (eg such as 
java.io.InputStream). Beware if you enable this option then you may not be able 
later to access the message body as the stream have already been read by this 
logger. To remedy this you will have to use <a shape="rect" 
href="stream-caching.html">Stream Caching</a>. </p></td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <code>multiline</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>false</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> If <code>
 true</code>, each piece of information is logged on a new line. 
</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>maxChars</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>&#160;</p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> Limits the number of characters logged per line. The 
default value is <code>10000</code> from <strong>Camel 2.9</strong> onwards. 
</p></td></tr></tbody></table></div>
 </div><div class="confluence-information-macro 
confluence-information-macro-tip"><p class="title">Logging stream 
bodies</p><span class="aui-icon aui-icon-small aui-iconfont-approve 
confluence-information-macro-icon"></span><div 
class="confluence-information-macro-body"><p>For older versions of Camel that 
do not support the showFiles or showStreams properties above, you can set the 
following property instead on the <a shape="rect" 
href="camelcontext.html">CamelContext</a> to log both stream and file 
bodies:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">camelContext.getProperties().put(Exchange.LOG_DEBUG_BODY_STREAMS,
 true);
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[camelContext.getProperties().put(Exchange.LOG_DEBUG_BODY_STREAMS,
 true);
+]]></script>
 </div></div></div></div><h3 id="Log-Regularloggersample">Regular logger 
sample</h3><p>In the route below we log the incoming orders at 
<code>DEBUG</code> level before the order is processed:</p><div class="code 
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">from("activemq:orders").to("log:com.mycompany.order?level=DEBUG").to("bean:processOrder");
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[from(&quot;activemq:orders&quot;).to(&quot;log:com.mycompany.order?level=DEBUG&quot;).to(&quot;bean:processOrder&quot;);
+]]></script>
 </div></div><p>Or using Spring XML to define the route:</p><div class="code 
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: xml; gutter: false; theme: Default" 
style="font-size:12px;">  &lt;route&gt;
-    &lt;from uri="activemq:orders"/&gt;
-    &lt;to uri="log:com.mycompany.order?level=DEBUG"/&gt;
-    &lt;to uri="bean:processOrder"/&gt;
+<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[  &lt;route&gt;
+    &lt;from uri=&quot;activemq:orders&quot;/&gt;
+    &lt;to uri=&quot;log:com.mycompany.order?level=DEBUG&quot;/&gt;
+    &lt;to uri=&quot;bean:processOrder&quot;/&gt;
   &lt;/route&gt; 
-</pre>
+]]></script>
 </div></div><h3 id="Log-Regularloggerwithformattersample">Regular logger with 
formatter sample</h3><p>In the route below we log the incoming orders at 
<code>INFO</code> level before the order is processed.</p><div class="code 
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">from("activemq:orders").
-    
to("log:com.mycompany.order?showAll=true&amp;multiline=true").to("bean:processOrder");
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[from(&quot;activemq:orders&quot;).
+    
to(&quot;log:com.mycompany.order?showAll=true&amp;multiline=true&quot;).to(&quot;bean:processOrder&quot;);
+]]></script>
 </div></div><h3 id="Log-ThroughputloggerwithgroupSizesample">Throughput logger 
with groupSize sample</h3><p>In the route below we log the throughput of the 
incoming orders at <code>DEBUG</code> level grouped by 10 messages.</p><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">from("activemq:orders").
-    
to("log:com.mycompany.order?level=DEBUG&amp;groupSize=10").to("bean:processOrder");
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[from(&quot;activemq:orders&quot;).
+    
to(&quot;log:com.mycompany.order?level=DEBUG&amp;groupSize=10&quot;).to(&quot;bean:processOrder&quot;);
+]]></script>
 </div></div><h3 id="Log-ThroughputloggerwithgroupIntervalsample">Throughput 
logger with groupInterval sample</h3><p>This route will result in message stats 
logged every 10s, with an initial 60s delay and stats should be displayed even 
if there isn't any message traffic.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">from("activemq:orders").
-to("log:com.mycompany.order?level=DEBUG&amp;groupInterval=10000&amp;groupDelay=60000&amp;groupActiveOnly=false").to("bean:processOrder");
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[from(&quot;activemq:orders&quot;).
+to(&quot;log:com.mycompany.order?level=DEBUG&amp;groupInterval=10000&amp;groupDelay=60000&amp;groupActiveOnly=false&quot;).to(&quot;bean:processOrder&quot;);
+]]></script>
 </div></div><p>The following will be logged:</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">"Received: 1000 new messages, with total 2000 so far. 
Last group took: 10000 millis which is: 100 messages per second. average: 100"
-</pre>
-</div></div><h3 id="Log-Fullcustomizationoftheloggingoutput">Full 
customization of the logging output</h3><p><strong>Available as of Camel 
2.11</strong></p><p>With the options outlined in the <a shape="rect" 
href="log.html">#Formatting</a> section, you can control much of the output of 
the logger. However, log lines will always follow this structure:</p><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">Exchange[Id:ID-machine-local-50656-1234567901234-1-2, 
ExchangePattern:InOut, 
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&quot;Received: 1000 new messages, with total 
2000 so far. Last group took: 10000 millis which is: 100 messages per second. 
average: 100&quot;
+]]></script>
+</div></div><h3 id="Log-Fullcustomizationoftheloggingoutput">Full 
customization of the logging output</h3><p><strong>Available as of Camel 
2.11</strong></p><p>With the options outlined in the <a shape="rect" 
href="#Log-Formatting">#Formatting</a> section, you can control much of the 
output of the logger. However, log lines will always follow this 
structure:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[Exchange[Id:ID-machine-local-50656-1234567901234-1-2,
 ExchangePattern:InOut, 
 
Properties:{CamelToEndpoint=log://org.apache.camel.component.log.TEST?showAll=true,
 
 CamelCreatedTimestamp=Thu Mar 28 00:00:00 WET 2013}, 
 Headers:{breadcrumbId=ID-machine-local-50656-1234567901234-1-1}, 
BodyType:String, Body:Hello World, Out: null]
-</pre>
+]]></script>
 </div></div><p>This format is unsuitable in some cases, perhaps because you 
need to...</p><ul><li>... filter the headers and properties that are printed, 
to strike a balance between insight and verbosity.</li><li>... adjust the log 
message to whatever you deem most readable.</li><li>... tailor log messages for 
digestion by log mining systems, e.g. Splunk.</li><li>... print specific body 
types differently.</li><li>... etc.</li></ul><p>Whenever you require absolute 
customization, you can create a class that implements the <a shape="rect" 
class="external-link" 
href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/spi/ExchangeFormatter.html";><code>ExchangeFormatter</code></a>
 interface. Within the <code>format(Exchange)</code> method you have access to 
the full Exchange, so you can select and extract the precise information you 
need, format it in a custom manner and return it. The return value will become 
the final log message.</p><p>You can have the Log compon
 ent pick up your custom <code>ExchangeFormatter</code> in either of two 
ways:</p><p><strong>Explicitly instantiating the LogComponent in your 
Registry:</strong></p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">&lt;bean name="log" 
class="org.apache.camel.component.log.LogComponent"&gt;
-   &lt;property name="exchangeFormatter" ref="myCustomFormatter" /&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;bean name=&quot;log&quot; 
class=&quot;org.apache.camel.component.log.LogComponent&quot;&gt;
+   &lt;property name=&quot;exchangeFormatter&quot; 
ref=&quot;myCustomFormatter&quot; /&gt;
 &lt;/bean&gt;
-</pre>
+]]></script>
 </div></div><p><strong>Convention over configuration:</strong></p><p>Simply by 
registering a bean with the name <code>logFormatter</code>; the Log Component 
is intelligent enough to pick it up automatically.</p><div class="code panel 
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">&lt;bean name="logFormatter" 
class="com.xyz.MyCustomExchangeFormatter" /&gt;
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;bean name=&quot;logFormatter&quot; 
class=&quot;com.xyz.MyCustomExchangeFormatter&quot; /&gt;
+]]></script>
 </div></div><p>NOTE: the <code>ExchangeFormatter</code> gets applied to 
<strong>all Log endpoints within that Camel Context</strong>. If you need 
different ExchangeFormatters for different endpoints, just instantiate the 
LogComponent as many times as needed, and use the relevant bean name as the 
endpoint prefix.</p><p>From <strong>Camel 2.11.2/2.12</strong> onwards when 
using a custom log formatter, you can specify parameters in the log uri, which 
gets configured on the custom log formatter. Though when you do that you should 
define the "logFormatter" as prototype scoped so its not shared if you have 
different parameters, eg:</p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">&lt;bean name="logFormatter" 
class="com.xyz.MyCustomExchangeFormatter" scope="prototype"/&gt;
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;bean name=&quot;logFormatter&quot; 
class=&quot;com.xyz.MyCustomExchangeFormatter&quot; 
scope=&quot;prototype&quot;/&gt;
+]]></script>
 </div></div><p>And then we can have Camel routes using the log uri with 
different options:</p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">&lt;to uri="log:foo?param1=foo&amp;amp;param2=100"/&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;to 
uri=&quot;log:foo?param1=foo&amp;amp;param2=100&quot;/&gt;
 ...
-&lt;to uri="log:bar?param1=bar&amp;amp;param2=200"/&gt;
-</pre>
+&lt;to uri=&quot;log:bar?param1=bar&amp;amp;param2=200&quot;/&gt;
+]]></script>
 </div></div><h4 id="Log-UsingLogcomponentinOSGi">Using Log component in 
OSGi</h4><p><strong>Improvement as of Camel 2.12.4/2.13.1</strong></p><p>When 
using&#160;Log component inside OSGi (e.g., in Karaf), the underlying logging 
mechanisms are provided by PAX logging. It searches for a bundle which 
invokes&#160;<code>org.slf4j.LoggerFactory.getLogger()</code> method and 
associates the bundle with the logger instance. Without specifying 
custom&#160;<code>org.sfl4j.Logger</code> instance, the logger created by Log 
component is associated with <code>camel-core</code> bundle.</p><p>In some 
scenarios it is required that the bundle associated with logger should be the 
bundle which contains route definition. To do this, either register single 
instance of&#160;<code>org.slf4j.Logger</code> in the Registry or reference it 
using&#160;<code>logger</code> URI parameter.</p><p></p><h3 
id="Log-SeeAlso">See Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html">Configuring 
Camel</a></li><li><a shape="rect" 
href="component.html">Component</a></li><li><a shape="rect" 
href="endpoint.html">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li></ul><ul><li><a 
shape="rect" href="tracer.html">Tracer</a></li><li><a shape="rect" 
href="how-do-i-use-log4j.html">How do I use log4j</a></li><li><a shape="rect" 
href="how-do-i-use-java-14-logging.html">How do I use Java 1.4 
logging</a></li><li><a shape="rect" href="logeip.html">LogEIP</a> for using 
<code>log</code> directly in the DSL for human logs.</li></ul></div>
         </td>
@@ -153,7 +153,7 @@ Headers:{breadcrumbId=ID-machine-local-5
           <div class="navigation">
             <div class="navigation_top">
                 <!-- NavigationBar -->
-<div class="navigation_bottom" id="navigation_bottom"><h3 
id="Navigation-Overviewhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49132";><a
 shape="rect" href="overview.html">Overview</a></h3><ul 
class="alternate"><li><a shape="rect" href="index.html">Home</a></li><li><a 
shape="rect" href="download.html">Download</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li><li><a shape="rect" 
href="faq.html">FAQ</a></li></ul><h3 
id="Navigation-Documentationhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49534";><a
 shape="rect" href="documentation.html">Documentation</a></h3><ul 
class="alternate"><li><a shape="rect" href="user-guide.html">User 
Guide</a></li><li><a shape="rect" href="manual.html">Manual</a></li><li><a 
shape="rect" href="books.html">Books</a></li><li><a shape="rect" 
href="tutorials.html">Tutorials</a></li><li><a shape="rect" 
href="examples.html">Examples</a></li><li><a shape="rect" 
href="cookbook.html">Cookbook</a></li>
 <li><a shape="rect" href="architecture.html">Architecture</a></li><li><a 
shape="rect" href="enterprise-integration-patterns.html">Enterprise Integration 
Patterns</a></li><li><a shape="rect" href="dsl.html">DSL</a></li><li><a 
shape="rect" href="components.html">Components</a></li><li><a shape="rect" 
href="data-format.html">Data Format</a></li><li><a shape="rect" 
href="languages.html">Languages</a></li><li><a shape="rect" 
href="security.html">Security</a></li><li><a shape="rect" 
href="security-advisories.html">Security Advisories</a></li></ul><h3 
id="Navigation-Search">Search</h3><form 
enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" 
action="http://www.google.com/cse";>
+<div class="navigation_bottom" id="navigation_bottom"><h3 
id="Navigation-Overview"><a shape="rect" 
href="overview.html">Overview</a></h3><ul class="alternate"><li><a shape="rect" 
href="index.html">Home</a></li><li><a shape="rect" 
href="download.html">Download</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li><li><a shape="rect" 
href="faq.html">FAQ</a></li></ul><h3 id="Navigation-Documentation"><a 
shape="rect" href="documentation.html">Documentation</a></h3><ul 
class="alternate"><li><a shape="rect" href="user-guide.html">User 
Guide</a></li><li><a shape="rect" href="manual.html">Manual</a></li><li><a 
shape="rect" href="books.html">Books</a></li><li><a shape="rect" 
href="tutorials.html">Tutorials</a></li><li><a shape="rect" 
href="examples.html">Examples</a></li><li><a shape="rect" 
href="cookbook.html">Cookbook</a></li><li><a shape="rect" 
href="architecture.html">Architecture</a></li><li><a shape="rect" 
href="enterprise-integration-patterns.html">Enterprise
  Integration Patterns</a></li><li><a shape="rect" 
href="dsl.html">DSL</a></li><li><a shape="rect" 
href="components.html">Components</a></li><li><a shape="rect" 
href="data-format.html">Data Format</a></li><li><a shape="rect" 
href="languages.html">Languages</a></li><li><a shape="rect" 
href="security.html">Security</a></li><li><a shape="rect" 
href="security-advisories.html">Security Advisories</a></li></ul><h3 
id="Navigation-Search">Search</h3><form 
enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" 
action="http://www.google.com/cse";>
   <div>
     <input type="hidden" name="cx" value="007878419884033443453:m5nhvy4hmyq">
     <input type="hidden" name="ie" value="UTF-8">
@@ -161,7 +161,7 @@ Headers:{breadcrumbId=ID-machine-local-5
     <input type="submit" name="sa" value="Search">
   </div>
 </form>
-<script type="text/javascript" 
src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en";></script><h3
 
id="Navigation-Communityhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49115";><a
 shape="rect" href="community.html">Community</a></h3><ul 
class="alternate"><li><a shape="rect" 
href="support.html">Support</a></li><li><a shape="rect" 
href="contributing.html">Contributing</a></li><li><a shape="rect" 
href="discussion-forums.html">Discussion Forums</a></li><li><a shape="rect" 
href="mailing-lists.html">Mailing Lists</a></li><li><a shape="rect" 
href="user-stories.html">User Stories</a></li><li><a shape="rect" 
href="news.html">News</a></li><li><a shape="rect" 
href="articles.html">Articles</a></li><li><a shape="rect" 
href="site.html">Site</a></li><li><a shape="rect" 
href="team.html">Team</a></li><li><a shape="rect" class="external-link" 
href="http://camel-extra.googlecode.com/"; rel="nofollow">Camel 
Extra</a></li></ul><h3 id="Navigation-Developershttps://cwi
 ki.apache.org/confluence/pages/viewpage.action?pageId=49124"><a shape="rect" 
href="developers.html">Developers</a></h3><ul class="alternate"><li><a 
shape="rect" href="developers.html">Developer Guide</a></li><li><a shape="rect" 
href="source.html">Source</a></li><li><a shape="rect" 
href="building.html">Building</a></li><li><a shape="rect" 
href="javadoc.html">JavaDoc</a></li><li><a shape="rect" 
href="irc-room.html">IRC Room</a></li></ul><h3 
id="Navigation-ApacheSoftwareFoundation">Apache Software Foundation</h3><ul 
class="alternate"><li><a shape="rect" class="external-link" 
href="http://www.apache.org/licenses/";>License</a></li><li><a shape="rect" 
class="external-link" 
href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li><li><a
 shape="rect" class="external-link" 
href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li><li><a 
shape="rect" class="external-link" 
href="http://www.apache.org/security/";>Security</a></li></ul></div>
+<script type="text/javascript" 
src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en";></script><h3
 id="Navigation-Community"><a shape="rect" 
href="community.html">Community</a></h3><ul class="alternate"><li><a 
shape="rect" href="support.html">Support</a></li><li><a shape="rect" 
href="contributing.html">Contributing</a></li><li><a shape="rect" 
href="discussion-forums.html">Discussion Forums</a></li><li><a shape="rect" 
href="mailing-lists.html">Mailing Lists</a></li><li><a shape="rect" 
href="user-stories.html">User Stories</a></li><li><a shape="rect" 
href="news.html">News</a></li><li><a shape="rect" 
href="articles.html">Articles</a></li><li><a shape="rect" 
href="site.html">Site</a></li><li><a shape="rect" 
href="team.html">Team</a></li><li><a shape="rect" class="external-link" 
href="http://camel-extra.googlecode.com/"; rel="nofollow">Camel 
Extra</a></li></ul><h3 id="Navigation-Developers"><a shape="rect" 
href="developers.html">Developers</a></h3><ul class="alternate"
 ><li><a shape="rect" href="developers.html">Developer Guide</a></li><li><a 
 >shape="rect" href="source.html">Source</a></li><li><a shape="rect" 
 >href="building.html">Building</a></li><li><a shape="rect" 
 >href="javadoc.html">JavaDoc</a></li><li><a shape="rect" 
 >href="irc-room.html">IRC Room</a></li></ul><h3 
 >id="Navigation-ApacheSoftwareFoundation">Apache Software Foundation</h3><ul 
 >class="alternate"><li><a shape="rect" class="external-link" 
 >href="http://www.apache.org/licenses/";>License</a></li><li><a shape="rect" 
 >class="external-link" 
 >href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li><li><a
 > shape="rect" class="external-link" 
 >href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li><li><a 
 >shape="rect" class="external-link" 
 >href="http://www.apache.org/security/";>Security</a></li></ul></div>
                 <!-- NavigationBar -->
             </div>
           </div>

Modified: websites/production/camel/content/message-history.html
==============================================================================
--- websites/production/camel/content/message-history.html (original)
+++ websites/production/camel/content/message-history.html Tue Sep 22 14:26:24 
2015
@@ -105,28 +105,28 @@ This property contains the last known en
 
 <p>The information can be reached from Java code with:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 List&lt;MessageHistory&gt; list = 
exchange.getProperty(Exchange.MESSAGE_HISTORY, List.class);
 ...
-</pre>
+]]></script>
 </div></div>
 
 <h4 id="MessageHistory-Enablingordisablingmessagehistory">Enabling or 
disabling message history</h4>
 
 <p>The <a shape="rect" href="message-history.html">Message History</a> can be 
enabled or disabled per <code>CamelContext</code> or per route. For example you 
can turn it off with</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 camelContext.setMessageHistory(false);
-</pre>
+]]></script>
 </div></div>
 
 <p>Or from XML DSL with</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: xml; gutter: false; theme: Default" style="font-size:12px;">
-&lt;camelContext messageHistory="false" ...&gt;
+<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+&lt;camelContext messageHistory=&quot;false&quot; ...&gt;
 ...
 &lt;/camelContext&gt;
-</pre>
+]]></script>
 </div></div>
 
 <p>You can also do this per route. Then a route level configuration overrides 
the <code>CamelContext</code> level configuration. </p>
@@ -136,7 +136,7 @@ camelContext.setMessageHistory(false);
 <p>If <a shape="rect" href="message-history.html">Message History</a> is 
enabled, then Camel will leverage this information, when the <a shape="rect" 
href="error-handler.html">Error Handler</a> logs exhausted exceptions. Then in 
addition to the caused exception with its stacktrace, you can see the message 
history; you may think this as a "route stacktrace". And example is provided 
below:</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 2013-05-31 14:41:28,084 [ - seda://start] ERROR DefaultErrorHandler            
- Failed delivery for (MessageId: ID-davsclaus-air-lan-55446-1370004087263-0-1 
on ExchangeId: ID-davsclaus-air-lan-55446-1370004087263-0-3). Exhausted after 
delivery attempt: 1 caught: java.lang.IllegalArgumentException: Forced to dump 
message history
 
 Message History
@@ -172,14 +172,14 @@ java.lang.IllegalArgumentException: Forc
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)
-</pre>
+]]></script>
 </div></div>
 
 <p>You can turn off logging message history from the <a shape="rect" 
href="error-handler.html">Error Handler</a> using</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 errorHandler(defaultErrorHandler().logExhaustedMessageHistory(false));
-</pre>
+]]></script>
 </div></div>
 
 <h4 id="MessageHistory-UsingThisPattern">Using This Pattern</h4>
@@ -190,7 +190,7 @@ errorHandler(defaultErrorHandler().logEx
           <div class="navigation">
             <div class="navigation_top">
                 <!-- NavigationBar -->
-<div class="navigation_bottom" id="navigation_bottom"><h3 
id="Navigation-Overviewhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49132";><a
 shape="rect" href="overview.html">Overview</a></h3><ul 
class="alternate"><li><a shape="rect" href="index.html">Home</a></li><li><a 
shape="rect" href="download.html">Download</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li><li><a shape="rect" 
href="faq.html">FAQ</a></li></ul><h3 
id="Navigation-Documentationhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49534";><a
 shape="rect" href="documentation.html">Documentation</a></h3><ul 
class="alternate"><li><a shape="rect" href="user-guide.html">User 
Guide</a></li><li><a shape="rect" href="manual.html">Manual</a></li><li><a 
shape="rect" href="books.html">Books</a></li><li><a shape="rect" 
href="tutorials.html">Tutorials</a></li><li><a shape="rect" 
href="examples.html">Examples</a></li><li><a shape="rect" 
href="cookbook.html">Cookbook</a></li>
 <li><a shape="rect" href="architecture.html">Architecture</a></li><li><a 
shape="rect" href="enterprise-integration-patterns.html">Enterprise Integration 
Patterns</a></li><li><a shape="rect" href="dsl.html">DSL</a></li><li><a 
shape="rect" href="components.html">Components</a></li><li><a shape="rect" 
href="data-format.html">Data Format</a></li><li><a shape="rect" 
href="languages.html">Languages</a></li><li><a shape="rect" 
href="security.html">Security</a></li><li><a shape="rect" 
href="security-advisories.html">Security Advisories</a></li></ul><h3 
id="Navigation-Search">Search</h3><form 
enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" 
action="http://www.google.com/cse";>
+<div class="navigation_bottom" id="navigation_bottom"><h3 
id="Navigation-Overview"><a shape="rect" 
href="overview.html">Overview</a></h3><ul class="alternate"><li><a shape="rect" 
href="index.html">Home</a></li><li><a shape="rect" 
href="download.html">Download</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li><li><a shape="rect" 
href="faq.html">FAQ</a></li></ul><h3 id="Navigation-Documentation"><a 
shape="rect" href="documentation.html">Documentation</a></h3><ul 
class="alternate"><li><a shape="rect" href="user-guide.html">User 
Guide</a></li><li><a shape="rect" href="manual.html">Manual</a></li><li><a 
shape="rect" href="books.html">Books</a></li><li><a shape="rect" 
href="tutorials.html">Tutorials</a></li><li><a shape="rect" 
href="examples.html">Examples</a></li><li><a shape="rect" 
href="cookbook.html">Cookbook</a></li><li><a shape="rect" 
href="architecture.html">Architecture</a></li><li><a shape="rect" 
href="enterprise-integration-patterns.html">Enterprise
  Integration Patterns</a></li><li><a shape="rect" 
href="dsl.html">DSL</a></li><li><a shape="rect" 
href="components.html">Components</a></li><li><a shape="rect" 
href="data-format.html">Data Format</a></li><li><a shape="rect" 
href="languages.html">Languages</a></li><li><a shape="rect" 
href="security.html">Security</a></li><li><a shape="rect" 
href="security-advisories.html">Security Advisories</a></li></ul><h3 
id="Navigation-Search">Search</h3><form 
enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" 
action="http://www.google.com/cse";>
   <div>
     <input type="hidden" name="cx" value="007878419884033443453:m5nhvy4hmyq">
     <input type="hidden" name="ie" value="UTF-8">
@@ -198,7 +198,7 @@ errorHandler(defaultErrorHandler().logEx
     <input type="submit" name="sa" value="Search">
   </div>
 </form>
-<script type="text/javascript" 
src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en";></script><h3
 
id="Navigation-Communityhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49115";><a
 shape="rect" href="community.html">Community</a></h3><ul 
class="alternate"><li><a shape="rect" 
href="support.html">Support</a></li><li><a shape="rect" 
href="contributing.html">Contributing</a></li><li><a shape="rect" 
href="discussion-forums.html">Discussion Forums</a></li><li><a shape="rect" 
href="mailing-lists.html">Mailing Lists</a></li><li><a shape="rect" 
href="user-stories.html">User Stories</a></li><li><a shape="rect" 
href="news.html">News</a></li><li><a shape="rect" 
href="articles.html">Articles</a></li><li><a shape="rect" 
href="site.html">Site</a></li><li><a shape="rect" 
href="team.html">Team</a></li><li><a shape="rect" class="external-link" 
href="http://camel-extra.googlecode.com/"; rel="nofollow">Camel 
Extra</a></li></ul><h3 id="Navigation-Developershttps://cwi
 ki.apache.org/confluence/pages/viewpage.action?pageId=49124"><a shape="rect" 
href="developers.html">Developers</a></h3><ul class="alternate"><li><a 
shape="rect" href="developers.html">Developer Guide</a></li><li><a shape="rect" 
href="source.html">Source</a></li><li><a shape="rect" 
href="building.html">Building</a></li><li><a shape="rect" 
href="javadoc.html">JavaDoc</a></li><li><a shape="rect" 
href="irc-room.html">IRC Room</a></li></ul><h3 
id="Navigation-ApacheSoftwareFoundation">Apache Software Foundation</h3><ul 
class="alternate"><li><a shape="rect" class="external-link" 
href="http://www.apache.org/licenses/";>License</a></li><li><a shape="rect" 
class="external-link" 
href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li><li><a
 shape="rect" class="external-link" 
href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li><li><a 
shape="rect" class="external-link" 
href="http://www.apache.org/security/";>Security</a></li></ul></div>
+<script type="text/javascript" 
src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en";></script><h3
 id="Navigation-Community"><a shape="rect" 
href="community.html">Community</a></h3><ul class="alternate"><li><a 
shape="rect" href="support.html">Support</a></li><li><a shape="rect" 
href="contributing.html">Contributing</a></li><li><a shape="rect" 
href="discussion-forums.html">Discussion Forums</a></li><li><a shape="rect" 
href="mailing-lists.html">Mailing Lists</a></li><li><a shape="rect" 
href="user-stories.html">User Stories</a></li><li><a shape="rect" 
href="news.html">News</a></li><li><a shape="rect" 
href="articles.html">Articles</a></li><li><a shape="rect" 
href="site.html">Site</a></li><li><a shape="rect" 
href="team.html">Team</a></li><li><a shape="rect" class="external-link" 
href="http://camel-extra.googlecode.com/"; rel="nofollow">Camel 
Extra</a></li></ul><h3 id="Navigation-Developers"><a shape="rect" 
href="developers.html">Developers</a></h3><ul class="alternate"
 ><li><a shape="rect" href="developers.html">Developer Guide</a></li><li><a 
 >shape="rect" href="source.html">Source</a></li><li><a shape="rect" 
 >href="building.html">Building</a></li><li><a shape="rect" 
 >href="javadoc.html">JavaDoc</a></li><li><a shape="rect" 
 >href="irc-room.html">IRC Room</a></li></ul><h3 
 >id="Navigation-ApacheSoftwareFoundation">Apache Software Foundation</h3><ul 
 >class="alternate"><li><a shape="rect" class="external-link" 
 >href="http://www.apache.org/licenses/";>License</a></li><li><a shape="rect" 
 >class="external-link" 
 >href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li><li><a
 > shape="rect" class="external-link" 
 >href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li><li><a 
 >shape="rect" class="external-link" 
 >href="http://www.apache.org/security/";>Security</a></li></ul></div>
                 <!-- NavigationBar -->
             </div>
           </div>

Modified: websites/production/camel/content/mvel-component.html
==============================================================================
--- websites/production/camel/content/mvel-component.html (original)
+++ websites/production/camel/content/mvel-component.html Tue Sep 22 14:26:24 
2015
@@ -92,22 +92,22 @@
 
 <p>Maven users will need to add the following dependency to their 
<code>pom.xml</code> for this component:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: xml; gutter: false; theme: Default" style="font-size:12px;">
+<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 &lt;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
     &lt;artifactId&gt;camel-mvel&lt;/artifactId&gt;
     &lt;version&gt;x.x.x&lt;/version&gt;
     &lt;!-- use the same version as your Camel core version --&gt;
 &lt;/dependency&gt;
-</pre>
+]]></script>
 </div></div>
 
 <h3 id="MVELComponent-URIformat">URI format</h3>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 mvel:templateName[?options]
-</pre>
+]]></script>
 </div></div>
 
 <p>Where <strong>templateName</strong> is the classpath-local URI of the 
template to invoke; or the complete URL of the remote template (eg: <a 
shape="rect" class="external-link" href="file://folder/myfile.mvel" 
rel="nofollow">file://folder/myfile.mvel</a>).</p>
@@ -146,10 +146,10 @@ mvel:templateName[?options]
 <p>For example you could use something like</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
-from("activemq:My.Queue").
-  to("mvel:com/acme/MyResponse.mvel");
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+from(&quot;activemq:My.Queue&quot;).
+  to(&quot;mvel:com/acme/MyResponse.mvel&quot;);
+]]></script>
 </div></div>
 
 <p>To use a MVEL template to formulate a response to a message for InOut 
message exchanges (where there is a <code>JMSReplyTo</code> header).</p>
@@ -157,21 +157,21 @@ from("activemq:My.Queue").
 <p>To specify what template the component should use dynamically via a header, 
so for example:</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
-from("direct:in").
-  setHeader("CamelMvelResourceUri").constant("path/to/my/template.mvel").
-  to("mvel:dummy");
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+from(&quot;direct:in&quot;).
+  
setHeader(&quot;CamelMvelResourceUri&quot;).constant(&quot;path/to/my/template.mvel&quot;).
+  to(&quot;mvel:dummy&quot;);
+]]></script>
 </div></div>
 
 <p>To specify a template directly as a header the component should use 
dynamically via a header, so for example:</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
-from("direct:in").
-  setHeader("CamelMvelTemplate").constant("@{\"The result is \" + request.body 
* 3}\" }").
-  to("velocity:dummy");
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+from(&quot;direct:in&quot;).
+  setHeader(&quot;CamelMvelTemplate&quot;).constant(&quot;@{\&quot;The result 
is \&quot; + request.body * 3}\&quot; }&quot;).
+  to(&quot;velocity:dummy&quot;);
+]]></script>
 </div></div>
 
 <h3 id="MVELComponent-SeeAlso">See Also</h3>
@@ -181,7 +181,7 @@ from("direct:in").
           <div class="navigation">
             <div class="navigation_top">
                 <!-- NavigationBar -->
-<div class="navigation_bottom" id="navigation_bottom"><h3 
id="Navigation-Overviewhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49132";><a
 shape="rect" href="overview.html">Overview</a></h3><ul 
class="alternate"><li><a shape="rect" href="index.html">Home</a></li><li><a 
shape="rect" href="download.html">Download</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li><li><a shape="rect" 
href="faq.html">FAQ</a></li></ul><h3 
id="Navigation-Documentationhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49534";><a
 shape="rect" href="documentation.html">Documentation</a></h3><ul 
class="alternate"><li><a shape="rect" href="user-guide.html">User 
Guide</a></li><li><a shape="rect" href="manual.html">Manual</a></li><li><a 
shape="rect" href="books.html">Books</a></li><li><a shape="rect" 
href="tutorials.html">Tutorials</a></li><li><a shape="rect" 
href="examples.html">Examples</a></li><li><a shape="rect" 
href="cookbook.html">Cookbook</a></li>
 <li><a shape="rect" href="architecture.html">Architecture</a></li><li><a 
shape="rect" href="enterprise-integration-patterns.html">Enterprise Integration 
Patterns</a></li><li><a shape="rect" href="dsl.html">DSL</a></li><li><a 
shape="rect" href="components.html">Components</a></li><li><a shape="rect" 
href="data-format.html">Data Format</a></li><li><a shape="rect" 
href="languages.html">Languages</a></li><li><a shape="rect" 
href="security.html">Security</a></li><li><a shape="rect" 
href="security-advisories.html">Security Advisories</a></li></ul><h3 
id="Navigation-Search">Search</h3><form 
enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" 
action="http://www.google.com/cse";>
+<div class="navigation_bottom" id="navigation_bottom"><h3 
id="Navigation-Overview"><a shape="rect" 
href="overview.html">Overview</a></h3><ul class="alternate"><li><a shape="rect" 
href="index.html">Home</a></li><li><a shape="rect" 
href="download.html">Download</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li><li><a shape="rect" 
href="faq.html">FAQ</a></li></ul><h3 id="Navigation-Documentation"><a 
shape="rect" href="documentation.html">Documentation</a></h3><ul 
class="alternate"><li><a shape="rect" href="user-guide.html">User 
Guide</a></li><li><a shape="rect" href="manual.html">Manual</a></li><li><a 
shape="rect" href="books.html">Books</a></li><li><a shape="rect" 
href="tutorials.html">Tutorials</a></li><li><a shape="rect" 
href="examples.html">Examples</a></li><li><a shape="rect" 
href="cookbook.html">Cookbook</a></li><li><a shape="rect" 
href="architecture.html">Architecture</a></li><li><a shape="rect" 
href="enterprise-integration-patterns.html">Enterprise
  Integration Patterns</a></li><li><a shape="rect" 
href="dsl.html">DSL</a></li><li><a shape="rect" 
href="components.html">Components</a></li><li><a shape="rect" 
href="data-format.html">Data Format</a></li><li><a shape="rect" 
href="languages.html">Languages</a></li><li><a shape="rect" 
href="security.html">Security</a></li><li><a shape="rect" 
href="security-advisories.html">Security Advisories</a></li></ul><h3 
id="Navigation-Search">Search</h3><form 
enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" 
action="http://www.google.com/cse";>
   <div>
     <input type="hidden" name="cx" value="007878419884033443453:m5nhvy4hmyq">
     <input type="hidden" name="ie" value="UTF-8">
@@ -189,7 +189,7 @@ from("direct:in").
     <input type="submit" name="sa" value="Search">
   </div>
 </form>
-<script type="text/javascript" 
src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en";></script><h3
 
id="Navigation-Communityhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49115";><a
 shape="rect" href="community.html">Community</a></h3><ul 
class="alternate"><li><a shape="rect" 
href="support.html">Support</a></li><li><a shape="rect" 
href="contributing.html">Contributing</a></li><li><a shape="rect" 
href="discussion-forums.html">Discussion Forums</a></li><li><a shape="rect" 
href="mailing-lists.html">Mailing Lists</a></li><li><a shape="rect" 
href="user-stories.html">User Stories</a></li><li><a shape="rect" 
href="news.html">News</a></li><li><a shape="rect" 
href="articles.html">Articles</a></li><li><a shape="rect" 
href="site.html">Site</a></li><li><a shape="rect" 
href="team.html">Team</a></li><li><a shape="rect" class="external-link" 
href="http://camel-extra.googlecode.com/"; rel="nofollow">Camel 
Extra</a></li></ul><h3 id="Navigation-Developershttps://cwi
 ki.apache.org/confluence/pages/viewpage.action?pageId=49124"><a shape="rect" 
href="developers.html">Developers</a></h3><ul class="alternate"><li><a 
shape="rect" href="developers.html">Developer Guide</a></li><li><a shape="rect" 
href="source.html">Source</a></li><li><a shape="rect" 
href="building.html">Building</a></li><li><a shape="rect" 
href="javadoc.html">JavaDoc</a></li><li><a shape="rect" 
href="irc-room.html">IRC Room</a></li></ul><h3 
id="Navigation-ApacheSoftwareFoundation">Apache Software Foundation</h3><ul 
class="alternate"><li><a shape="rect" class="external-link" 
href="http://www.apache.org/licenses/";>License</a></li><li><a shape="rect" 
class="external-link" 
href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li><li><a
 shape="rect" class="external-link" 
href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li><li><a 
shape="rect" class="external-link" 
href="http://www.apache.org/security/";>Security</a></li></ul></div>
+<script type="text/javascript" 
src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en";></script><h3
 id="Navigation-Community"><a shape="rect" 
href="community.html">Community</a></h3><ul class="alternate"><li><a 
shape="rect" href="support.html">Support</a></li><li><a shape="rect" 
href="contributing.html">Contributing</a></li><li><a shape="rect" 
href="discussion-forums.html">Discussion Forums</a></li><li><a shape="rect" 
href="mailing-lists.html">Mailing Lists</a></li><li><a shape="rect" 
href="user-stories.html">User Stories</a></li><li><a shape="rect" 
href="news.html">News</a></li><li><a shape="rect" 
href="articles.html">Articles</a></li><li><a shape="rect" 
href="site.html">Site</a></li><li><a shape="rect" 
href="team.html">Team</a></li><li><a shape="rect" class="external-link" 
href="http://camel-extra.googlecode.com/"; rel="nofollow">Camel 
Extra</a></li></ul><h3 id="Navigation-Developers"><a shape="rect" 
href="developers.html">Developers</a></h3><ul class="alternate"
 ><li><a shape="rect" href="developers.html">Developer Guide</a></li><li><a 
 >shape="rect" href="source.html">Source</a></li><li><a shape="rect" 
 >href="building.html">Building</a></li><li><a shape="rect" 
 >href="javadoc.html">JavaDoc</a></li><li><a shape="rect" 
 >href="irc-room.html">IRC Room</a></li></ul><h3 
 >id="Navigation-ApacheSoftwareFoundation">Apache Software Foundation</h3><ul 
 >class="alternate"><li><a shape="rect" class="external-link" 
 >href="http://www.apache.org/licenses/";>License</a></li><li><a shape="rect" 
 >class="external-link" 
 >href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li><li><a
 > shape="rect" class="external-link" 
 >href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li><li><a 
 >shape="rect" class="external-link" 
 >href="http://www.apache.org/security/";>Security</a></li></ul></div>
                 <!-- NavigationBar -->
             </div>
           </div>

Modified: websites/production/camel/content/printer.html
==============================================================================
--- websites/production/camel/content/printer.html (original)
+++ websites/production/camel/content/printer.html Tue Sep 22 14:26:24 2015
@@ -86,58 +86,58 @@
         <tr>
         <td valign="top" width="100%">
 <div class="wiki-content maincontent"><h2 
id="Printer-PrinterComponent">Printer Component</h2><p><strong>Available as of 
Camel 2.1</strong></p><p>The <strong>printer</strong> component provides a way 
to direct payloads on a route to a printer. Obviously the payload has to be a 
formatted piece of payload in order for the component to appropriately print 
it. The objective is to be able to direct specific payloads as jobs to a line 
printer in a camel flow.</p><p>This component only supports a camel producer 
endpoint.</p><p>The functionality allows for the payload to be printed on a 
default printer, named local, remote or wirelessly linked printer using the 
javax printing API under the covers.</p><p>Maven users will need to add the 
following dependency to their <code>pom.xml</code> for this component:</p><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: xml; gutter: false; theme: Default" 
style="font-size:12px;">&lt;dependency&gt;
+<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
     &lt;artifactId&gt;camel-printer&lt;/artifactId&gt;
     &lt;version&gt;x.x.x&lt;/version&gt;
     &lt;!-- use the same version as your Camel core version --&gt;
 &lt;/dependency&gt;
-</pre>
+]]></script>
 </div></div><h3 id="Printer-URIformat">URI format</h3><p>Since the URI scheme 
for a printer has not been standardized (the nearest thing to a standard being 
the IETF print standard) and therefore not uniformly applied by vendors, we 
have chosen <strong>"lpr"</strong> as the scheme.</p><div class="code panel 
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">lpr://localhost/default[?options]
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[lpr://localhost/default[?options]
 lpr://remotehost:port/path/to/printer[?options]
-</pre>
+]]></script>
 </div></div><p>You can append query options to the URI in the following 
format, <code>?option=value&amp;option=value&amp;...</code></p><h3 
id="Printer-Options">Options</h3><div class="confluenceTableSmall">
 <div class="table-wrap"><table class="confluenceTable"><tbody><tr><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Name </p></th><th colspan="1" 
rowspan="1" class="confluenceTh"><p> Default Value </p></th><th colspan="1" 
rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <code>mediaSize</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>NA_LETTER</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> Sets the stationary as defined by enumeration names in 
the <a shape="rect" class="external-link" 
href="http://download.oracle.com/javase/6/docs/api/javax/print/attribute/standard/MediaSizeName.html";
 rel="nofollow">javax.print.attribute.standard.MediaSizeName API</a>. The 
default setting is to use North American Letter sized stationary. The value's 
case is ignored, e.g. values of <code>iso_a4</code> and <code>ISO_A4</code> may 
be used. </p></td></tr><tr><td colspan="1" rowspan="
 1" class="confluenceTd"><p> <code>copies</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>1</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> Sets number of copies based on the 
javax.print.attribute.standard.Copies API </p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>sides</code> </p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <code>Sides.ONE_SIDED</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Sets one sided or 
two sided printing based on the javax.print.attribute.standard.Sides API 
</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>flavor</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>DocFlavor.BYTE_ARRAY</code> </p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p> Sets DocFlavor based on the 
javax.print.DocFlavor API </p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>mimeType</code> </p
 ></td><td colspan="1" rowspan="1" class="confluenceTd"><p> 
 ><code>AUTOSENSE</code> </p></td><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p> Sets mimeTypes supported by the 
 >javax.print.DocFlavor API </p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p> <code>mediaTray</code> </p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p> <code>AUTOSENSE</code> </p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p> Since <strong>Camel 
 >2.11.x</strong> sets MediaTray supported by the javax.print.DocFlavor API 
 ></p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
 ><code>printerPrefix</code> </p></td><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p> null </p></td><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p> Since <strong>Camel 2.11.x</strong> sets the prefix 
 >name of the printer, it is useful when the printer name does not start with 
 >//hostname/printer</p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p> <code>sendToPrin
 ter</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> true 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Setting this 
option to <code>false</code> prevents sending of the <a shape="rect" 
class="external-link" 
href="http://docs.oracle.com/javase/6/docs/api/javax/print/Doc.html"; 
rel="nofollow">print data</a> to the printer</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>orientation</code> </p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <code>portrait</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Since 
<strong>Camel 2.13.x</strong> Sets the page orientation. Possible values: 
<code>portrait</code>, <code>landscape</code>, <code>reverse-portrait</code> or 
<code>reverse-landscape</code>, based on 
<code>javax.print.attribute.standard.OrientationRequested</code> 
</p></td></tr></tbody></table></div>
 </div><h3 id="Printer-SendingMessagestoaPrinter">Sending Messages to a 
Printer</h3><h4 id="Printer-PrinterProducer">Printer Producer</h4><p>Sending 
data to the printer is very straightforward and involves creating a producer 
endpoint that can be sent message exchanges on in route.</p><h3 
id="Printer-UsageSamples">Usage Samples</h3><h4 
id="Printer-Example1:PrintingtextbasedpayloadsonaDefaultprinterusingletterstationaryandone-sidedmode">Example
 1: Printing text based payloads on a Default printer using letter stationary 
and one-sided mode</h4><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">RouteBuilder builder = new RouteBuilder() {
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[RouteBuilder builder = new RouteBuilder() {
     public void configure() {
        from(file://inputdir/?delete=true)
-       .to("lpr://localhost/default?copies=2" +
-           "&amp;flavor=DocFlavor.INPUT_STREAM&amp;" +
-           "&amp;mimeType=AUTOSENSE" +
-           "&amp;mediaSize=NA_LETTER" +
-           "&amp;sides=one-sided")
+       .to(&quot;lpr://localhost/default?copies=2&quot; +
+           &quot;&amp;flavor=DocFlavor.INPUT_STREAM&amp;&quot; +
+           &quot;&amp;mimeType=AUTOSENSE&quot; +
+           &quot;&amp;mediaSize=NA_LETTER&quot; +
+           &quot;&amp;sides=one-sided&quot;)
     }};
-</pre>
+]]></script>
 </div></div><h4 
id="Printer-Example2:PrintingGIFbasedpayloadsonaRemoteprinterusingA4stationaryandone-sidedmode">Example
 2: Printing GIF based payloads on a Remote printer using A4 stationary and 
one-sided mode</h4><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">RouteBuilder builder = new RouteBuilder() {
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[RouteBuilder builder = new RouteBuilder() {
     public void configure() {
        from(file://inputdir/?delete=true)
-       .to("lpr://remotehost/sales/salesprinter" +
-           "?copies=2&amp;sides=one-sided" +
-           "&amp;mimeType=GIF&amp;mediaSize=ISO_A4" +
-           "&amp;flavor=DocFlavor.INPUT_STREAM")
+       .to(&quot;lpr://remotehost/sales/salesprinter&quot; +
+           &quot;?copies=2&amp;sides=one-sided&quot; +
+           &quot;&amp;mimeType=GIF&amp;mediaSize=ISO_A4&quot; +
+           &quot;&amp;flavor=DocFlavor.INPUT_STREAM&quot;)
    }};
-</pre>
+]]></script>
 </div></div><h4 
id="Printer-Example3:PrintingJPEGbasedpayloadsonaRemoteprinterusingJapanesePostcardstationaryandone-sidedmode">Example
 3: Printing JPEG based payloads on a Remote printer using Japanese Postcard 
stationary and one-sided mode</h4><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">RouteBuilder builder = new RouteBuilder() {
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[RouteBuilder builder = new RouteBuilder() {
     public void configure() {
        from(file://inputdir/?delete=true)
-       .to("lpr://remotehost/sales/salesprinter" +
-           "?copies=2&amp;sides=one-sided" +
-           "&amp;mimeType=JPEG" +
-           "&amp;mediaSize=JAPANESE_POSTCARD" +
-           "&amp;flavor=DocFlavor.INPUT_STREAM")
+       .to(&quot;lpr://remotehost/sales/salesprinter&quot; +
+           &quot;?copies=2&amp;sides=one-sided&quot; +
+           &quot;&amp;mimeType=JPEG&quot; +
+           &quot;&amp;mediaSize=JAPANESE_POSTCARD&quot; +
+           &quot;&amp;flavor=DocFlavor.INPUT_STREAM&quot;)
     }};
-</pre>
+]]></script>
 </div></div></div>
         </td>
         <td valign="top">
           <div class="navigation">
             <div class="navigation_top">
                 <!-- NavigationBar -->
-<div class="navigation_bottom" id="navigation_bottom"><h3 
id="Navigation-Overviewhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49132";><a
 shape="rect" href="overview.html">Overview</a></h3><ul 
class="alternate"><li><a shape="rect" href="index.html">Home</a></li><li><a 
shape="rect" href="download.html">Download</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li><li><a shape="rect" 
href="faq.html">FAQ</a></li></ul><h3 
id="Navigation-Documentationhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49534";><a
 shape="rect" href="documentation.html">Documentation</a></h3><ul 
class="alternate"><li><a shape="rect" href="user-guide.html">User 
Guide</a></li><li><a shape="rect" href="manual.html">Manual</a></li><li><a 
shape="rect" href="books.html">Books</a></li><li><a shape="rect" 
href="tutorials.html">Tutorials</a></li><li><a shape="rect" 
href="examples.html">Examples</a></li><li><a shape="rect" 
href="cookbook.html">Cookbook</a></li>
 <li><a shape="rect" href="architecture.html">Architecture</a></li><li><a 
shape="rect" href="enterprise-integration-patterns.html">Enterprise Integration 
Patterns</a></li><li><a shape="rect" href="dsl.html">DSL</a></li><li><a 
shape="rect" href="components.html">Components</a></li><li><a shape="rect" 
href="data-format.html">Data Format</a></li><li><a shape="rect" 
href="languages.html">Languages</a></li><li><a shape="rect" 
href="security.html">Security</a></li><li><a shape="rect" 
href="security-advisories.html">Security Advisories</a></li></ul><h3 
id="Navigation-Search">Search</h3><form 
enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" 
action="http://www.google.com/cse";>
+<div class="navigation_bottom" id="navigation_bottom"><h3 
id="Navigation-Overview"><a shape="rect" 
href="overview.html">Overview</a></h3><ul class="alternate"><li><a shape="rect" 
href="index.html">Home</a></li><li><a shape="rect" 
href="download.html">Download</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li><li><a shape="rect" 
href="faq.html">FAQ</a></li></ul><h3 id="Navigation-Documentation"><a 
shape="rect" href="documentation.html">Documentation</a></h3><ul 
class="alternate"><li><a shape="rect" href="user-guide.html">User 
Guide</a></li><li><a shape="rect" href="manual.html">Manual</a></li><li><a 
shape="rect" href="books.html">Books</a></li><li><a shape="rect" 
href="tutorials.html">Tutorials</a></li><li><a shape="rect" 
href="examples.html">Examples</a></li><li><a shape="rect" 
href="cookbook.html">Cookbook</a></li><li><a shape="rect" 
href="architecture.html">Architecture</a></li><li><a shape="rect" 
href="enterprise-integration-patterns.html">Enterprise
  Integration Patterns</a></li><li><a shape="rect" 
href="dsl.html">DSL</a></li><li><a shape="rect" 
href="components.html">Components</a></li><li><a shape="rect" 
href="data-format.html">Data Format</a></li><li><a shape="rect" 
href="languages.html">Languages</a></li><li><a shape="rect" 
href="security.html">Security</a></li><li><a shape="rect" 
href="security-advisories.html">Security Advisories</a></li></ul><h3 
id="Navigation-Search">Search</h3><form 
enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" 
action="http://www.google.com/cse";>
   <div>
     <input type="hidden" name="cx" value="007878419884033443453:m5nhvy4hmyq">
     <input type="hidden" name="ie" value="UTF-8">
@@ -145,7 +145,7 @@ lpr://remotehost:port/path/to/printer[?o
     <input type="submit" name="sa" value="Search">
   </div>
 </form>
-<script type="text/javascript" 
src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en";></script><h3
 
id="Navigation-Communityhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49115";><a
 shape="rect" href="community.html">Community</a></h3><ul 
class="alternate"><li><a shape="rect" 
href="support.html">Support</a></li><li><a shape="rect" 
href="contributing.html">Contributing</a></li><li><a shape="rect" 
href="discussion-forums.html">Discussion Forums</a></li><li><a shape="rect" 
href="mailing-lists.html">Mailing Lists</a></li><li><a shape="rect" 
href="user-stories.html">User Stories</a></li><li><a shape="rect" 
href="news.html">News</a></li><li><a shape="rect" 
href="articles.html">Articles</a></li><li><a shape="rect" 
href="site.html">Site</a></li><li><a shape="rect" 
href="team.html">Team</a></li><li><a shape="rect" class="external-link" 
href="http://camel-extra.googlecode.com/"; rel="nofollow">Camel 
Extra</a></li></ul><h3 id="Navigation-Developershttps://cwi
 ki.apache.org/confluence/pages/viewpage.action?pageId=49124"><a shape="rect" 
href="developers.html">Developers</a></h3><ul class="alternate"><li><a 
shape="rect" href="developers.html">Developer Guide</a></li><li><a shape="rect" 
href="source.html">Source</a></li><li><a shape="rect" 
href="building.html">Building</a></li><li><a shape="rect" 
href="javadoc.html">JavaDoc</a></li><li><a shape="rect" 
href="irc-room.html">IRC Room</a></li></ul><h3 
id="Navigation-ApacheSoftwareFoundation">Apache Software Foundation</h3><ul 
class="alternate"><li><a shape="rect" class="external-link" 
href="http://www.apache.org/licenses/";>License</a></li><li><a shape="rect" 
class="external-link" 
href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li><li><a
 shape="rect" class="external-link" 
href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li><li><a 
shape="rect" class="external-link" 
href="http://www.apache.org/security/";>Security</a></li></ul></div>
+<script type="text/javascript" 
src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en";></script><h3
 id="Navigation-Community"><a shape="rect" 
href="community.html">Community</a></h3><ul class="alternate"><li><a 
shape="rect" href="support.html">Support</a></li><li><a shape="rect" 
href="contributing.html">Contributing</a></li><li><a shape="rect" 
href="discussion-forums.html">Discussion Forums</a></li><li><a shape="rect" 
href="mailing-lists.html">Mailing Lists</a></li><li><a shape="rect" 
href="user-stories.html">User Stories</a></li><li><a shape="rect" 
href="news.html">News</a></li><li><a shape="rect" 
href="articles.html">Articles</a></li><li><a shape="rect" 
href="site.html">Site</a></li><li><a shape="rect" 
href="team.html">Team</a></li><li><a shape="rect" class="external-link" 
href="http://camel-extra.googlecode.com/"; rel="nofollow">Camel 
Extra</a></li></ul><h3 id="Navigation-Developers"><a shape="rect" 
href="developers.html">Developers</a></h3><ul class="alternate"
 ><li><a shape="rect" href="developers.html">Developer Guide</a></li><li><a 
 >shape="rect" href="source.html">Source</a></li><li><a shape="rect" 
 >href="building.html">Building</a></li><li><a shape="rect" 
 >href="javadoc.html">JavaDoc</a></li><li><a shape="rect" 
 >href="irc-room.html">IRC Room</a></li></ul><h3 
 >id="Navigation-ApacheSoftwareFoundation">Apache Software Foundation</h3><ul 
 >class="alternate"><li><a shape="rect" class="external-link" 
 >href="http://www.apache.org/licenses/";>License</a></li><li><a shape="rect" 
 >class="external-link" 
 >href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li><li><a
 > shape="rect" class="external-link" 
 >href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li><li><a 
 >shape="rect" class="external-link" 
 >href="http://www.apache.org/security/";>Security</a></li></ul></div>
                 <!-- NavigationBar -->
             </div>
           </div>

Modified: websites/production/camel/content/processor.html
==============================================================================
--- websites/production/camel/content/processor.html (original)
+++ websites/production/camel/content/processor.html Tue Sep 22 14:26:24 2015
@@ -93,61 +93,61 @@
 <p>Once you have written a class which implements processor like this...</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 public class MyProcessor implements Processor {
   public void process(Exchange exchange) throws Exception {
     // do something...
   }
 }
-</pre>
+]]></script>
 </div></div>
 
 <p>You can then easily use this inside a route by declaring the bean in 
Spring, say via the XML (or registering it in JNDI if that is your <a 
shape="rect" href="registry.html">Registry</a>)</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
-&lt;bean id="myProcessor" class="com.acme.MyProcessor"/&gt;
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+&lt;bean id=&quot;myProcessor&quot; class=&quot;com.acme.MyProcessor&quot;/&gt;
+]]></script>
 </div></div>
 
 <p>Then in Camel you can do</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
-from("activemq:myQueue").to("myProcessor");
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+from(&quot;activemq:myQueue&quot;).to(&quot;myProcessor&quot;);
+]]></script>
 </div></div>
 
 <h4 id="Processor-UsingtheprocessDSL">Using the process DSL</h4>
 <p>In your route you can also use the <code>process</code> DSL syntax for 
invoking a processor.</p>
 
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
 Processor myProcessor = new MyProcessor();
 ...
-from("activemq:myQueue").process(myProcessor);
-</pre>
+from(&quot;activemq:myQueue&quot;).process(myProcessor);
+]]></script>
 </div></div>
 
 <p>If you need to lookup the processor in the <a shape="rect" 
href="registry.html">Registry</a> then you should use the 
<strong>processRef</strong> DSL:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
-from("activemq:myQueue").processRef("myProcessor");
-</pre>
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+from(&quot;activemq:myQueue&quot;).processRef(&quot;myProcessor&quot;);
+]]></script>
 </div></div>
 
 <h3 id="Processor-Whyuseprocesswhenyoucanusetoinstead?">Why use process when 
you can use to instead?</h3>
 <p>The process can be used in routes as an anonymous inner class such:</p>
 <div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default" 
style="font-size:12px;">
-    from("activemq:myQueue").process(new Processor() {
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[
+    from(&quot;activemq:myQueue&quot;).process(new Processor() {
         public void process(Exchange exchange) throws Exception {
             String payload = exchange.getIn().getBody(String.class);
             // do something with the payload and/or exchange here
-           exchange.getIn().setBody("Changed body");
+           exchange.getIn().setBody(&quot;Changed body&quot;);
        }
-    }).to("activemq:myOtherQueue");
-</pre>
+    }).to(&quot;activemq:myOtherQueue&quot;);
+]]></script>
 </div></div>
 <p>This is usable for quickly whirling up some code. If the code in the inner 
class gets a bit more complicated it is of course advised to refactor it into a 
separate class.</p>
 
@@ -165,7 +165,7 @@ from("activemq:myQueue").processRef("myP
           <div class="navigation">
             <div class="navigation_top">
                 <!-- NavigationBar -->
-<div class="navigation_bottom" id="navigation_bottom"><h3 
id="Navigation-Overviewhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49132";><a
 shape="rect" href="overview.html">Overview</a></h3><ul 
class="alternate"><li><a shape="rect" href="index.html">Home</a></li><li><a 
shape="rect" href="download.html">Download</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li><li><a shape="rect" 
href="faq.html">FAQ</a></li></ul><h3 
id="Navigation-Documentationhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49534";><a
 shape="rect" href="documentation.html">Documentation</a></h3><ul 
class="alternate"><li><a shape="rect" href="user-guide.html">User 
Guide</a></li><li><a shape="rect" href="manual.html">Manual</a></li><li><a 
shape="rect" href="books.html">Books</a></li><li><a shape="rect" 
href="tutorials.html">Tutorials</a></li><li><a shape="rect" 
href="examples.html">Examples</a></li><li><a shape="rect" 
href="cookbook.html">Cookbook</a></li>
 <li><a shape="rect" href="architecture.html">Architecture</a></li><li><a 
shape="rect" href="enterprise-integration-patterns.html">Enterprise Integration 
Patterns</a></li><li><a shape="rect" href="dsl.html">DSL</a></li><li><a 
shape="rect" href="components.html">Components</a></li><li><a shape="rect" 
href="data-format.html">Data Format</a></li><li><a shape="rect" 
href="languages.html">Languages</a></li><li><a shape="rect" 
href="security.html">Security</a></li><li><a shape="rect" 
href="security-advisories.html">Security Advisories</a></li></ul><h3 
id="Navigation-Search">Search</h3><form 
enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" 
action="http://www.google.com/cse";>
+<div class="navigation_bottom" id="navigation_bottom"><h3 
id="Navigation-Overview"><a shape="rect" 
href="overview.html">Overview</a></h3><ul class="alternate"><li><a shape="rect" 
href="index.html">Home</a></li><li><a shape="rect" 
href="download.html">Download</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li><li><a shape="rect" 
href="faq.html">FAQ</a></li></ul><h3 id="Navigation-Documentation"><a 
shape="rect" href="documentation.html">Documentation</a></h3><ul 
class="alternate"><li><a shape="rect" href="user-guide.html">User 
Guide</a></li><li><a shape="rect" href="manual.html">Manual</a></li><li><a 
shape="rect" href="books.html">Books</a></li><li><a shape="rect" 
href="tutorials.html">Tutorials</a></li><li><a shape="rect" 
href="examples.html">Examples</a></li><li><a shape="rect" 
href="cookbook.html">Cookbook</a></li><li><a shape="rect" 
href="architecture.html">Architecture</a></li><li><a shape="rect" 
href="enterprise-integration-patterns.html">Enterprise
  Integration Patterns</a></li><li><a shape="rect" 
href="dsl.html">DSL</a></li><li><a shape="rect" 
href="components.html">Components</a></li><li><a shape="rect" 
href="data-format.html">Data Format</a></li><li><a shape="rect" 
href="languages.html">Languages</a></li><li><a shape="rect" 
href="security.html">Security</a></li><li><a shape="rect" 
href="security-advisories.html">Security Advisories</a></li></ul><h3 
id="Navigation-Search">Search</h3><form 
enctype="application/x-www-form-urlencoded" method="get" id="cse-search-box" 
action="http://www.google.com/cse";>
   <div>
     <input type="hidden" name="cx" value="007878419884033443453:m5nhvy4hmyq">
     <input type="hidden" name="ie" value="UTF-8">
@@ -173,7 +173,7 @@ from("activemq:myQueue").processRef("myP
     <input type="submit" name="sa" value="Search">
   </div>
 </form>
-<script type="text/javascript" 
src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en";></script><h3
 
id="Navigation-Communityhttps://cwiki.apache.org/confluence/pages/viewpage.action?pageId=49115";><a
 shape="rect" href="community.html">Community</a></h3><ul 
class="alternate"><li><a shape="rect" 
href="support.html">Support</a></li><li><a shape="rect" 
href="contributing.html">Contributing</a></li><li><a shape="rect" 
href="discussion-forums.html">Discussion Forums</a></li><li><a shape="rect" 
href="mailing-lists.html">Mailing Lists</a></li><li><a shape="rect" 
href="user-stories.html">User Stories</a></li><li><a shape="rect" 
href="news.html">News</a></li><li><a shape="rect" 
href="articles.html">Articles</a></li><li><a shape="rect" 
href="site.html">Site</a></li><li><a shape="rect" 
href="team.html">Team</a></li><li><a shape="rect" class="external-link" 
href="http://camel-extra.googlecode.com/"; rel="nofollow">Camel 
Extra</a></li></ul><h3 id="Navigation-Developershttps://cwi
 ki.apache.org/confluence/pages/viewpage.action?pageId=49124"><a shape="rect" 
href="developers.html">Developers</a></h3><ul class="alternate"><li><a 
shape="rect" href="developers.html">Developer Guide</a></li><li><a shape="rect" 
href="source.html">Source</a></li><li><a shape="rect" 
href="building.html">Building</a></li><li><a shape="rect" 
href="javadoc.html">JavaDoc</a></li><li><a shape="rect" 
href="irc-room.html">IRC Room</a></li></ul><h3 
id="Navigation-ApacheSoftwareFoundation">Apache Software Foundation</h3><ul 
class="alternate"><li><a shape="rect" class="external-link" 
href="http://www.apache.org/licenses/";>License</a></li><li><a shape="rect" 
class="external-link" 
href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li><li><a
 shape="rect" class="external-link" 
href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li><li><a 
shape="rect" class="external-link" 
href="http://www.apache.org/security/";>Security</a></li></ul></div>
+<script type="text/javascript" 
src="http://www.google.com/coop/cse/brand?form=cse-search-box&amp;lang=en";></script><h3
 id="Navigation-Community"><a shape="rect" 
href="community.html">Community</a></h3><ul class="alternate"><li><a 
shape="rect" href="support.html">Support</a></li><li><a shape="rect" 
href="contributing.html">Contributing</a></li><li><a shape="rect" 
href="discussion-forums.html">Discussion Forums</a></li><li><a shape="rect" 
href="mailing-lists.html">Mailing Lists</a></li><li><a shape="rect" 
href="user-stories.html">User Stories</a></li><li><a shape="rect" 
href="news.html">News</a></li><li><a shape="rect" 
href="articles.html">Articles</a></li><li><a shape="rect" 
href="site.html">Site</a></li><li><a shape="rect" 
href="team.html">Team</a></li><li><a shape="rect" class="external-link" 
href="http://camel-extra.googlecode.com/"; rel="nofollow">Camel 
Extra</a></li></ul><h3 id="Navigation-Developers"><a shape="rect" 
href="developers.html">Developers</a></h3><ul class="alternate"
 ><li><a shape="rect" href="developers.html">Developer Guide</a></li><li><a 
 >shape="rect" href="source.html">Source</a></li><li><a shape="rect" 
 >href="building.html">Building</a></li><li><a shape="rect" 
 >href="javadoc.html">JavaDoc</a></li><li><a shape="rect" 
 >href="irc-room.html">IRC Room</a></li></ul><h3 
 >id="Navigation-ApacheSoftwareFoundation">Apache Software Foundation</h3><ul 
 >class="alternate"><li><a shape="rect" class="external-link" 
 >href="http://www.apache.org/licenses/";>License</a></li><li><a shape="rect" 
 >class="external-link" 
 >href="http://www.apache.org/foundation/sponsorship.html";>Sponsorship</a></li><li><a
 > shape="rect" class="external-link" 
 >href="http://www.apache.org/foundation/thanks.html";>Thanks</a></li><li><a 
 >shape="rect" class="external-link" 
 >href="http://www.apache.org/security/";>Security</a></li></ul></div>
                 <!-- NavigationBar -->
             </div>
           </div>


Reply via email to