Author: rajith
Date: Mon Jul 30 19:35:32 2012
New Revision: 1367241
URL: http://svn.apache.org/viewvc?rev=1367241&view=rev
Log:
QPID-3575 Changed the name of the system prop to
"qpid.session.legacy_exception_behaviour". The system prop will now
restore the old behavior.
Modified:
qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
Modified:
qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
URL:
http://svn.apache.org/viewvc/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java?rev=1367241&r1=1367240&r2=1367241&view=diff
==============================================================================
---
qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
(original)
+++
qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
Mon Jul 30 19:35:32 2012
@@ -129,7 +129,7 @@ public class AMQSession_0_10 extends AMQ
*/
private final RangeSet _txRangeSet = RangeSetFactory.createRangeSet();
private int _txSize = 0;
- private boolean _isHardError =
Boolean.getBoolean("qpid.session.is_hard_error");
+ private boolean _isHardError =
Boolean.getBoolean("qpid.session.legacy_exception_behaviour");
//--- constructors
/**
@@ -1051,15 +1051,18 @@ public class AMQSession_0_10 extends AMQ
AMQException amqe = new
AMQException(AMQConstant.getConstant(code), _isHardError, se.getMessage(),
se.getCause());
_currentException = amqe;
}
- cancelTimerTask();
- stopDispatcherThread();
- try
- {
- closed(_currentException);
- }
- catch(Exception e)
+ if (!_isHardError)
{
- _logger.warn("Error closing session", e);
+ cancelTimerTask();
+ stopDispatcherThread();
+ try
+ {
+ closed(_currentException);
+ }
+ catch(Exception e)
+ {
+ _logger.warn("Error closing session", e);
+ }
}
getAMQConnection().exceptionReceived(_currentException);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]