Added in ack attribute
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 12 Oct 2006 15:33:02 +0000 (15:33 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 12 Oct 2006 15:33:02 +0000 (15:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@463281 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/tribes/transport/AbstractSender.java
webapps/docs/config/cluster-sender.xml

index a50920a..adbb4b1 100644 (file)
@@ -57,7 +57,7 @@ public abstract class AbstractSender implements DataSender {
     private boolean soLingerOn = false;
     private int soLingerTime = 3;
     private int soTrafficClass = 0x04 | 0x08 | 0x010;
-    private boolean throwOnFailedAck = false;
+    private boolean throwOnFailedAck = true;
     
     /**
      * transfers sender properties from one sender to another
index 8f76110..a5498cc 100644 (file)
        Boolean value for the socket TCP_NODELAY option. Possible values are <code>true</code> or <code>false</code>.
        The default value is <code>true</code>
       </attribute>
+      <attribute name="throwOnFailedAck" required="false">
+       Boolean value, default value is <code>true</code>.
+       If set to true, the sender will throw a <code>org.apache.catalina.tribes.RemoteProcessException</code>
+       when we receive a negative ack from the remote member.
+       Set to false, and Tribes will treat a positive ack the same way as a negative ack, that the message was received.
+      </attribute>
     </attributes>
   </subsection>
   <subsection name="PooledParallelSender Attributes">