summaryrefslogtreecommitdiff
path: root/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
commit632b12bf08a91ae876bc397fd8d20ad3aabe6d03 (patch)
tree9b1d845cb7052e0ad283fb6ff08d70bccb5aee60 /java/client/src
parent36eac9afa717fc85e92964de4271b3b46880e1a0 (diff)
downloadqpid-python-632b12bf08a91ae876bc397fd8d20ad3aabe6d03.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/qpid@1211959 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/src')
-rw-r--r--java/client/src/main/java/org/apache/qpid/client/XASessionImpl.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/XASessionImpl.java b/java/client/src/main/java/org/apache/qpid/client/XASessionImpl.java
index 6b9121811d..66a94612c9 100644
--- a/java/client/src/main/java/org/apache/qpid/client/XASessionImpl.java
+++ b/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);