diff options
| author | Martin Ritchie <ritchiem@apache.org> | 2007-02-01 16:36:54 +0000 |
|---|---|---|
| committer | Martin Ritchie <ritchiem@apache.org> | 2007-02-01 16:36:54 +0000 |
| commit | 5de47f9bfadd6d6a8ffbdb9653de9608f461e40d (patch) | |
| tree | e15778b4a5118272f7511bfa8f7e08fdec42ec38 /qpid/java | |
| parent | 341b1b5853c253af4aa75c935c2d5be812adc400 (diff) | |
| download | qpid-python-5de47f9bfadd6d6a8ffbdb9653de9608f461e40d.tar.gz | |
QPID-341 When using Queues and Topics defined via JNDI settings are not preserved.
Removed extraction of destination/queue name and used BindingURL directly to create Destination.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@502271 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionFactory.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionFactory.java b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionFactory.java index b2d2d2bec3..17af3702a4 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionFactory.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionFactory.java @@ -62,7 +62,7 @@ public class AMQConnectionFactory implements ConnectionFactory, QueueConnectionF String clientName, String virtualHost) throws URLSyntaxException { this(new AMQConnectionURL(ConnectionURL.AMQ_PROTOCOL + "://" + - username + ":" + password + "@" + clientName + + username + ":" + password + "@" + clientName + "/" + virtualHost + "?brokerlist='" + broker + "'")); } @@ -334,7 +334,7 @@ public class AMQConnectionFactory implements ConnectionFactory, QueueConnectionF if (addr != null) { - return new AMQQueue(new AMQBindingURL((String) addr.getContent()).getQueueName()); + return new AMQQueue(new AMQBindingURL((String) addr.getContent())); } } @@ -344,7 +344,7 @@ public class AMQConnectionFactory implements ConnectionFactory, QueueConnectionF if (addr != null) { - return new AMQTopic(new AMQBindingURL((String) addr.getContent()).getDestinationName()); + return new AMQTopic(new AMQBindingURL((String) addr.getContent())); } } |
