diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2007-08-17 23:32:53 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2007-08-17 23:32:53 +0000 |
| commit | 32060b0cef1a43a630c6cdc81d4f0fc85ecba7e3 (patch) | |
| tree | 0b5ee19454ac78d016fe314b2bee059cb887c76f /qpid/java/client | |
| parent | 530b340d4b9d70155ee37c3e56a059ed3d1bcef3 (diff) | |
| download | qpid-python-32060b0cef1a43a630c6cdc81d4f0fc85ecba7e3.tar.gz | |
wrote a parser for the new URL format
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@567174 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client')
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpidity/jms/ConnectionFactoryImpl.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpidity/jms/ConnectionFactoryImpl.java b/qpid/java/client/src/main/java/org/apache/qpidity/jms/ConnectionFactoryImpl.java index 301c93c5ac..082d1c70e6 100644 --- a/qpid/java/client/src/main/java/org/apache/qpidity/jms/ConnectionFactoryImpl.java +++ b/qpid/java/client/src/main/java/org/apache/qpidity/jms/ConnectionFactoryImpl.java @@ -474,6 +474,16 @@ public class ConnectionFactoryImpl implements ConnectionFactory, QueueConnection return new TopicImpl(new BindingURLImpl((String) addr.getContent())); } } + + if (ref.getClassName().equals(DestinationImpl.class.getName())) + { + RefAddr addr = ref.get(DestinationImpl.class.getName()); + + if (addr != null) + { + return new DestinationImpl(new BindingURLImpl((String) addr.getContent())); + } + } if (ref.getClassName().equals(ConnectionFactoryImpl.class.getName())) { |
