diff options
| author | Robert Godfrey <rgodfrey@apache.org> | 2007-08-06 13:06:35 +0000 |
|---|---|---|
| committer | Robert Godfrey <rgodfrey@apache.org> | 2007-08-06 13:06:35 +0000 |
| commit | 66eda1edbca3bf08002af9a06ee58cf906e6fa08 (patch) | |
| tree | 38e564aef76e531cf6a5153a2a9bbb6278d39105 /qpid/java/client | |
| parent | 51dc2b529eb17fe03970fdeba32e527412f39698 (diff) | |
| download | qpid-python-66eda1edbca3bf08002af9a06ee58cf906e6fa08.tar.gz | |
QPID-543 : Add ability to register cusom exchange types
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@563125 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client')
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java b/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java index 0ee4882ec2..3691e80234 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java @@ -138,7 +138,7 @@ public class BasicMessageProducer extends Closeable implements org.apache.qpid.j _channelId = channelId; _session = session; _producerId = producerId; - if (destination != null) + if (destination != null && !(destination instanceof AMQUndefinedDestination)) { declareDestination(destination); } @@ -150,7 +150,7 @@ public class BasicMessageProducer extends Closeable implements org.apache.qpid.j void resubscribe() throws AMQException { - if (_destination != null) + if (_destination != null && !(_destination instanceof AMQUndefinedDestination)) { declareDestination(_destination); } |
