Author: buildbot
Date: Fri Aug 22 16:18:02 2014
New Revision: 920158
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/uuidgenerator.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/uuidgenerator.html
==============================================================================
--- websites/production/camel/content/uuidgenerator.html (original)
+++ websites/production/camel/content/uuidgenerator.html Fri Aug 22 16:18:02
2014
@@ -84,36 +84,17 @@
<tbody>
<tr>
<td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2
id="UuidGenerator-UuidGenerator">UuidGenerator</h2>
-
-<p>Starting with <strong>Camel 2.5</strong>, Camel supports 3rd party UUID
generator(s). This is useful, if e.g. your messaging provider does not support
UUID's with a length of 36 characters (like Websphere MQ). Another useful
scenario is to use a simple counter for testing purpose. With this it is easier
to correlate the exchanges in the log/debugger.</p>
-
-<p>You only have to implement <code>org.apache.camel.spi.UuidGenerator</code>
and tell Camel, that it should use your custom implementation:</p>
-
-<h3 id="UuidGenerator-ConfiguringfromJavaDSL">Configuring from Java DSL</h3>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
-getContext().setUuidGenerator(new MyCustomUuidGenerator());
+<div class="wiki-content maincontent"><h2
id="UuidGenerator-UuidGenerator">UuidGenerator</h2><p>Starting with
<strong>Camel 2.5</strong>, Camel supports 3rd party UUID generator(s). This is
useful, if e.g. your messaging provider does not support UUID's with a length
of 36 characters (like Websphere MQ). Another useful scenario is to use a
simple counter for testing purpose. With this it is easier to correlate the
exchanges in the log/debugger.</p><p>Camel uses UUIDs in the exchange and
message ids, and other unique ids it uses.</p><p>You only have to implement
<code>org.apache.camel.spi.UuidGenerator</code> and tell Camel, that it should
use your custom implementation:</p><h3
id="UuidGenerator-ConfiguringfromJavaDSL">Configuring from Java DSL</h3><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[getContext().setUuidGenerator(new
MyCustomUuidGenerator());
]]></script>
-</div></div>
-
- <div class="aui-message problem shadowed information-macro">
+</div></div> <div class="aui-message problem shadowed information-macro">
<span class="aui-icon icon-problem">Icon</span>
<div class="message-content">
-
-<p>You should not change the UUID generator at runtime (it should only be set
once)!</p>
+ <p>You should not change the UUID generator at
runtime (it should only be set once)!</p>
</div>
</div>
-
-
-<h3 id="UuidGenerator-ConfiguringfromSpringDSL">Configuring from Spring
DSL</h3>
-
-<p>Camel will configure this UUID generator by doing a lookup in the Spring
bean registry to find the bean of the type
<code>org.apache.camel.spi.UuidGenerator</code>.</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[
-<bean id="activeMQUuidGenerator"
class="org.apache.camel.impl.ActiveMQUuidGenerator" />
+<h3 id="UuidGenerator-ConfiguringfromSpringDSL">Configuring from Spring
DSL</h3><p>Camel will configure this UUID generator by doing a lookup in the
Spring bean registry to find the bean of the type
<code>org.apache.camel.spi.UuidGenerator</code>.</p><div class="code panel pdl"
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false"
type="syntaxhighlighter"><![CDATA[<bean id="activeMQUuidGenerator"
class="org.apache.camel.impl.ActiveMQUuidGenerator" />
<camelContext id="camel"
xmlns="http://camel.apache.org/schema/spring">
<route>
@@ -122,23 +103,7 @@ getContext().setUuidGenerator(new MyCust
</route>
</camelContext>
]]></script>
-</div></div>
-
-<h3 id="UuidGenerator-Providedimplementations">Provided implementations</h3>
-
-<p>Camel comes with three implementations of
<code>org.apache.camel.spi.UuidGenerator</code>:</p>
-<ul class="alternate"><li><code>org.apache.camel.impl.JavaUuidGenerator</code>
- This implementation uses <code>java.util.UUID</code>. The
<code>java.util.UUID</code> is synchronized and can therefore affect
performance on high concurrent systems. Therefore consider one of the
generators.</li><li><code>org.apache.camel.impl.SimpleUuidGenerator</code> -
This implementation use internally a
<code>java.util.concurrent.atomic.AtomicLong</code> and increase the ID for
every call by one. Starting with 1 as the first
id.</li><li><code>org.apache.camel.impl.ActiveMQUuidGenerator</code> - This
implementation use the ActiveMQ style of ID's. This implementation may use some
APIs from the JDK which is forbidden to use if running in the cloud (such as
Google App Engine) and therefore you may have to use one of the other
generators.</li></ul>
-
-
-<h4 id="UuidGenerator-ActiveMQUuidGenerator">ActiveMQUuidGenerator</h4>
-
-<p>From <strong>Camel 2.10.7/2.11.1</strong> onwards the JVM system property
with key: <code>activemq.idgenerator.port</code> can be used to assign a
specific port which is used during initialization of the UUID generator. By
default the port number 0 is used. Though in some cloud infrastructures this is
not allowed, and thus a specific port can be assigned instead. </p>
-
-<h3 id="UuidGenerator-Thedefaultgenerator">The default generator</h3>
-
-<p>From Camel 2.5 onwards the <code>ActiveMQUuidGenerator</code> is the
default generator because its the fastest.<br clear="none">
-In Camel 2.4 or older the default is the <code>JavaUuidGenerator</code>
generator.<br clear="none">
-In Camel 1.x the default generator is likewise the
<code>ActiveMQUuidGenerator</code>.</p></div>
+</div></div><h3 id="UuidGenerator-Providedimplementations">Provided
implementations</h3><p>Camel comes with three implementations of
<code>org.apache.camel.spi.UuidGenerator</code>:</p><ul
class="alternate"><li><code>org.apache.camel.impl.JavaUuidGenerator</code> -
This implementation uses <code>java.util.UUID</code>. The
<code>java.util.UUID</code> is synchronized and can therefore affect
performance on high concurrent systems. Therefore consider one of the
generators.</li><li><code>org.apache.camel.impl.SimpleUuidGenerator</code> -
This implementation use internally a
<code>java.util.concurrent.atomic.AtomicLong</code> and increase the ID for
every call by one. Starting with 1 as the first
id.</li><li><code>org.apache.camel.impl.ActiveMQUuidGenerator</code> - This
implementation use the ActiveMQ style of ID's. This implementation may use some
APIs from the JDK which is forbidden to use if running in the cloud (such as
Google App Engine) and therefore you may have to use one of the
other generators.</li></ul><h4
id="UuidGenerator-ActiveMQUuidGenerator">ActiveMQUuidGenerator</h4><p>From
<strong>Camel 2.10.7/2.11.1</strong> onwards the JVM system property with key:
<code>activemq.idgenerator.port</code> can be used to assign a specific port
which is used during initialization of the UUID generator. By default the port
number 0 is used. Though in some cloud infrastructures this is not allowed, and
thus a specific port can be assigned instead.</p><h3
id="UuidGenerator-Thedefaultgenerator">The default generator</h3><p>From Camel
2.5 onwards the <code>ActiveMQUuidGenerator</code> is the default generator
because its the fastest.<br clear="none"> In Camel 2.4 or older the default is
the <code>JavaUuidGenerator</code> generator.<br clear="none"> In Camel 1.x the
default generator is likewise the <code>ActiveMQUuidGenerator</code>.</p></div>
</td>
<td valign="top">
<div class="navigation">