diff options
author | Rajith Muditha Attapattu <rajith@apache.org> | 2012-01-26 14:43:20 +0000 |
---|---|---|
committer | Rajith Muditha Attapattu <rajith@apache.org> | 2012-01-26 14:43:20 +0000 |
commit | bc9cea8fa3b23891dd0b93c12854fe5055d4703a (patch) | |
tree | 44e0837e41fdff29c3ac24dcf36ed5d63f4713d0 /java/client/src | |
parent | 994fb411f269fe86adb7c1c99d21f7d18b45eb68 (diff) | |
download | qpid-python-bc9cea8fa3b23891dd0b93c12854fe5055d4703a.tar.gz |
QPID-3265 This is not a fix for this issue, but rather a minor step towards it.
It's incorrect to add the binding for the temp queue to the bindings object as if the destination is used with another consumer it will interfere.
Therefore the qeueu bind is sent explictly.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1236198 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/src')
-rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java | 8 |
1 files changed, 4 insertions, 4 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 022a8262e7..7d2753bdd1 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 @@ -1299,10 +1299,10 @@ public class AMQSession_0_10 extends AMQSession<BasicMessageConsumer_0_10, Basic node.setExclusive(true); node.setAutoDelete(!node.isDurable()); send0_10QueueDeclare(dest,null,false,true); - node.addBinding(new Binding(dest.getAddressName(), - dest.getQueueName(),// should have one by now - dest.getSubject(), - Collections.<String,Object>emptyMap())); + getQpidSession().exchangeBind(dest.getQueueName(), + dest.getAddressName(), + dest.getSubject(), + Collections.<String,Object>emptyMap()); sendQueueBind(dest.getAMQQueueName(), dest.getRoutingKey(), null,dest.getExchangeName(),dest, false); } |