summaryrefslogtreecommitdiff
path: root/java/client
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2012-07-16 17:41:02 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2012-07-16 17:41:02 +0000
commit30ce8d7db74fd758fd4c3a3332b126855e3d059c (patch)
treeb0c07a5b938cb44ecba1d1e4ff29f21c0e388c74 /java/client
parent7c4a185fff4f48c988b740b08a28931a6628271b (diff)
downloadqpid-python-30ce8d7db74fd758fd4c3a3332b126855e3d059c.tar.gz
QPID-3575
The added a system prop to revert to the previous behavior if need be. Modified the SelectorTest#testRuntimeSelectorError test case to suit the new behavior. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1362162 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client')
-rw-r--r--java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java b/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
index 3deddbd918..2402c06f7f 100644
--- a/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
+++ b/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
@@ -128,7 +128,8 @@ public class AMQSession_0_10 extends AMQSession<BasicMessageConsumer_0_10, Basic
* Used to store the range of in tx messages
*/
private final RangeSet _txRangeSet = RangeSetFactory.createRangeSet();
- private int _txSize = 0;
+ private int _txSize = 0;
+ private boolean _isHardError = Boolean.getBoolean("qpid.session.is_hard_error");
//--- constructors
/**
@@ -1047,7 +1048,7 @@ public class AMQSession_0_10 extends AMQSession<BasicMessageConsumer_0_10, Basic
{
code = ee.getErrorCode().getValue();
}
- AMQException amqe = new AMQException(AMQConstant.getConstant(code), false, se.getMessage(), se.getCause());
+ AMQException amqe = new AMQException(AMQConstant.getConstant(code), _isHardError, se.getMessage(), se.getCause());
_currentException = amqe;
}
cancelTimerTask();