diff options
| author | Arnaud Simon <arnaudsimon@apache.org> | 2008-01-16 14:42:58 +0000 |
|---|---|---|
| committer | Arnaud Simon <arnaudsimon@apache.org> | 2008-01-16 14:42:58 +0000 |
| commit | efb77b446040b4bd475fc17f7a7a122a23713f1a (patch) | |
| tree | 71b777e63d884cc8be855609bb1279116ef47829 /java/client | |
| parent | 286e115424ea7a6c45fc4e8309d2c0d9769a29e1 (diff) | |
| download | qpid-python-efb77b446040b4bd475fc17f7a7a122a23713f1a.tar.gz | |
see QPID-739
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@612471 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client')
| -rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/AMQQueue.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQQueue.java b/java/client/src/main/java/org/apache/qpid/client/AMQQueue.java index 9185bc87e8..13568594d9 100644 --- a/java/client/src/main/java/org/apache/qpid/client/AMQQueue.java +++ b/java/client/src/main/java/org/apache/qpid/client/AMQQueue.java @@ -137,7 +137,14 @@ public class AMQQueue extends AMQDestination implements Queue public AMQShortString getRoutingKey() { - return getAMQQueueName(); + if( getDestinationName() != null && ! getDestinationName().equals("")) + { + return getDestinationName(); + } + else + { + return getAMQQueueName(); + } } public boolean isNameRequired() |
