Author: mlovett
Date: Thu Sep 13 09:20:15 2007
New Revision: 575358
URL: http://svn.apache.org/viewvc?rev=575358&view=rev
Log:
Avoid polling for sequences that have not set the nextMessageNumber yet
Modified:
webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/polling/PollingManager.java
Modified:
webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/polling/PollingManager.java
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/polling/PollingManager.java?rev=575358&r1=575357&r2=575358&view=diff
==============================================================================
---
webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/polling/PollingManager.java
(original)
+++
webservices/sandesha/trunk/java/modules/core/src/main/java/org/apache/sandesha2/polling/PollingManager.java
Thu Sep 13 09:20:15 2007
@@ -152,8 +152,9 @@
if (log.isDebugEnabled())
log.debug("Polling rms " + beanToPoll);
// The sequence is there, but we still only poll if we
are expecting reply messages,
- // or if we don't have clean ack state.
- boolean cleanAcks = false;
+ // or if we don't have clean ack state. (We assume acks
are clean, and only unset
+ // this if we find evidence to the contrary).
+ boolean cleanAcks = true;
if (beanToPoll.getNextMessageNumber() > -1)
cleanAcks =
AcknowledgementManager.verifySequenceCompletion(beanToPoll.getClientCompletedMessages(),
beanToPoll.getNextMessageNumber());
long repliesExpected = beanToPoll.getExpectedReplies();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]