diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2007-02-16 13:05:54 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2007-02-16 13:05:54 +0000 |
| commit | 73c2db22d097b170c265fa10ee673902139fd42f (patch) | |
| tree | 7628fb79eb2b13525041009fa09924402af50fcd | |
| parent | 29998e1a91ce3872ebc12280fc87f631fc1d016a (diff) | |
| download | qpid-python-73c2db22d097b170c265fa10ee673902139fd42f.tar.gz | |
QPID-373 Queue|Exchange}{Bind|Declare} should be synchronous to correctly receive/handle error
Updated AMQSession to be synchronous. With the build error fixed!!
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@508384 13f79535-47bb-0310-9956-ffa450edef68
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java index c35c067bf6..3973b5dd71 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession.java @@ -298,7 +298,7 @@ public class AMQSession extends Closeable implements Session, QueueSession, Topi { _connection.exceptionReceived(new AMQNoConsumersException("Error: " + reason, bouncedMessage)); } - else if (errorCode == (AMQConstant.NO_ROUTE) + else if (errorCode == AMQConstant.NO_ROUTE) { _connection.exceptionReceived(new AMQNoRouteException("Error: " + reason, bouncedMessage)); } |
