[jboss-cvs] JBoss Messaging SVN: r6846 - trunk/docs/user-manual/en/modules.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon May 18 11:30:07 EDT 2009
Author: jmesnil
Date: 2009-05-18 11:30:06 -0400 (Mon, 18 May 2009)
New Revision: 6846
Modified:
trunk/docs/user-manual/en/modules/undelivered-messages.xml
Log:
user manual
* added section about delivery count persistence
Modified: trunk/docs/user-manual/en/modules/undelivered-messages.xml
===================================================================
--- trunk/docs/user-manual/en/modules/undelivered-messages.xml 2009-05-18 15:00:41 UTC (rev 6845)
+++ trunk/docs/user-manual/en/modules/undelivered-messages.xml 2009-05-18 15:30:06 UTC (rev 6846)
@@ -95,5 +95,27 @@
how dead letter is configured and used with JMS.</para>
</section>
</section>
+
+ <section>
+ <title>Delivery Count Persistence</title>
+ <para>In normal use, JBoss Messaging does not update delivery count <emphasis>persistently</emphasis>
+ until a message is rolled back (i.e. the delivery count is not updated <emphasis>before</emphasis> the message
+ is delivered to the consumer). In most messaging use cases, the messages are consumed, acknowledged and
+ forgotten as soon as they are consumed. In these cases, updating the delivery count persistently
+ before delivering the message would add an extra persistent step <emphasis>for each message delivered</emphasis>,
+ implying a significant performance penalty.</para>
+ <para>However, if the delivery count is not updated persistently before the message delivery happens, in the event of
+ a server crash, messages might not have been delivered. During the recovery phase, the server will not have
+ knowledge of that and will deliver the message with <literal>redelivered</literal> set to <literal>false</literal>
+ while it should be <literal>true</literal>.
+ </para>
+ <para>As this behavior breaks strict JMS semantics, JBoss Messaging allows to persist delivery count
+ before message delivery but disabled it by default for performance implications.</para>
+ <para>To enable it, set <literal>persist-delivery-count-before-delivery</literal> to <literal>true</literal> in <literal>jbm-configuration.xml</literal>:</para>
+ <programlisting>
+ <persist-delivery-count-before-delivery>true</persist-delivery-count-before-delivery>
+ </programlisting>
+ </section>
+
</chapter>
More information about the jboss-cvs-commits
mailing list