INT-3064 Message ID Generation

Use the SPR 4.0.0 Message ID Generation algorithm.

JIRA: https://jira.springsource.org/browse/INT-3064
This commit is contained in:
Gary Russell
2013-11-04 18:40:36 -05:00
parent 68f3990611
commit 87988b5032
4 changed files with 47 additions and 22 deletions

View File

@@ -121,10 +121,11 @@
<para>
When a message transitions through an application, each time it is
mutated (e.g. by a transformer) a new message id is assigned. The message id is
a <code>UUID</code>. Beginning with Spring Integration 3.0, the default strategy
used for id generation is to use the <code>com.eaio.uuid</code> package to
generate Type 1 UUIDs. This is much more efficient than the previous
<code>java.util.UUID.randomUUID()</code> implementation.
a <code>UUID</code>. Beginning with <emphasis>Spring Integration 3.0</emphasis>,
the default strategy used for id generation is more efficient than the previous
<code>java.util.UUID.randomUUID()</code> implementation. It uses simple random
numbers based on a secure random seed, instead of creating a secure random
number each time.
</para>
<para>
A different UUID generation strategy can be selected by declaring a bean that implements
@@ -147,11 +148,6 @@
can be used in cases where a UUID is not really needed and a simple incrementing
value is sufficient.
</para>
<important>
The default strategy of creating Type 1 UUIDs may present security concerns for some users
because the UUID contains the MAC address of a network interface on the platform. For these
users, an alternate strategy should be selected.
</important>
</section>
</section>

View File

@@ -467,8 +467,8 @@
<title>Message ID Generation</title>
<para>
Previously, message ids were generated using the JDK <code>UUID.randomUUID()</code> method. With this
release, the default mechanism has been changed to use the <code>com.eaio.uuid</code> package which
generates Type 1 UUIDs, and is significantly faster. In addition, the ability to change
release, the default mechanism has been changed to use a more efficient algorithm which
is significantly faster. In addition, the ability to change
the strategy used to generate message ids has been added.
For more information see <xref linkend="message-id-generation"/>.
</para>