summaryrefslogtreecommitdiff
path: root/qpid/java/client/src/main
diff options
context:
space:
mode:
authorAlex Rudyy <orudyy@apache.org>2013-07-17 16:10:51 +0000
committerAlex Rudyy <orudyy@apache.org>2013-07-17 16:10:51 +0000
commitf267c580488c9a1f46be65cd4b1d298563dcb3c6 (patch)
treece6842576d94801a105c6871c9c8a1a44ca7698c /qpid/java/client/src/main
parent286ece348bd9f70fc4eddfb990df59a3156745b0 (diff)
downloadqpid-python-f267c580488c9a1f46be65cd4b1d298563dcb3c6.tar.gz
QPID-4995: Generate queue name on a client if it is not provided in binding URL
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1504186 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/src/main')
-rw-r--r--qpid/java/client/src/main/java/org/apache/qpid/client/AMQQueue.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQQueue.java b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQQueue.java
index 4e9b53c814..3e37f74d98 100644
--- a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQQueue.java
+++ b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQQueue.java
@@ -167,9 +167,8 @@ public class AMQQueue extends AMQDestination implements Queue
public boolean isNameRequired()
{
- //If the name is null, we require one to be generated by the client so that it will#
- //remain valid if we failover (see BLZ-24)
- return getQueueName() == null;
+ AMQShortString queueName = getAMQQueueName();
+ return queueName == null || AMQShortString.EMPTY_STRING.equals(queueName);
}
@Override