summaryrefslogtreecommitdiff
path: root/qpid/java/client/src
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2011-12-08 16:29:55 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2011-12-08 16:29:55 +0000
commit3f5d23d77db83a9bc234a06a90e821a13c1ac37e (patch)
tree8c071c749813978d66b1e3b28de5586048399c1e /qpid/java/client/src
parentbdb2f5654c135376180a8453539492420a35453f (diff)
downloadqpid-python-3f5d23d77db83a9bc234a06a90e821a13c1ac37e.tar.gz
QPID-3625 Commiting the patch by Weston Price.
(cherry picked from commit fe3d0c1184bb124973e2cd7e451a67ac4a52a692) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1211959 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/src')
-rw-r--r--qpid/java/client/src/main/java/org/apache/qpid/client/XASessionImpl.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/XASessionImpl.java b/qpid/java/client/src/main/java/org/apache/qpid/client/XASessionImpl.java
index 6b9121811d..66a94612c9 100644
--- a/qpid/java/client/src/main/java/org/apache/qpid/client/XASessionImpl.java
+++ b/qpid/java/client/src/main/java/org/apache/qpid/client/XASessionImpl.java
@@ -5,9 +5,9 @@
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -51,7 +51,7 @@ public class XASessionImpl extends AMQSession_0_10 implements XASession, XATopic
int defaultPrefetchHigh, int defaultPrefetchLow)
{
super(qpidConnection, con, channelId, false, // this is not a transacted session
- Session.AUTO_ACKNOWLEDGE, // the ack mode is transacted
+ Session.CLIENT_ACKNOWLEDGE, //QPID-3625 XA should explicitly ack messages
MessageFactoryRegistry.newDefaultRegistry(), defaultPrefetchHigh, defaultPrefetchLow,null);
createSession();
_xaResource = new XAResourceImpl(this);