qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arnaudsi...@apache.org
Subject svn commit: r583765 - /incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
Date Thu, 11 Oct 2007 10:08:29 GMT
Author: arnaudsimon
Date: Thu Oct 11 03:08:28 2007
New Revision: 583765

URL: http://svn.apache.org/viewvc?rev=583765&view=rev
Log:
Changed message confirm_mode when no ack is used

Modified:
    incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java

Modified: incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java?rev=583765&r1=583764&r2=583765&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
(original)
+++ incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
Thu Oct 11 03:08:28 2007
@@ -339,7 +339,9 @@
         {
             throw new AMQException(AMQConstant.INTERNAL_ERROR, "problem when registering
consumer", e);
         }
-        getQpidSession().messageSubscribe(queueName.toString(), tag.toString(), Session.TRANSFER_CONFIRM_MODE_REQUIRED,
+        getQpidSession().messageSubscribe(queueName.toString(), tag.toString(),
+                                          (consumer.getAcknowledgeMode() != org.apache.qpid.jms.Session.NO_ACKNOWLEDGE)
?
+                                                  Session.TRANSFER_CONFIRM_MODE_REQUIRED
: Session.TRANSFER_CONFIRM_MODE_NOT_REQUIRED,
                                           preAcquire ? Session.TRANSFER_ACQUIRE_MODE_PRE_ACQUIRE
: Session.TRANSFER_ACQUIRE_MODE_NO_ACQUIRE,
                                           new MessagePartListenerAdapter((BasicMessageConsumer_0_10)
consumer), null,
                                           consumer.isNoLocal() ? Option.NO_LOCAL : Option.NO_OPTION,



Mime
View raw message