summaryrefslogtreecommitdiff
path: root/java/client/example/src/main/java/org/apache/qpid/example/MapReceiver.java
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2011-10-14 22:29:03 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2011-10-14 22:29:03 +0000
commit390b6b48b9808a1862b48b3e324451b95f465ed4 (patch)
tree8190d53d1c3d3022690be7a0b39dd848331a74e0 /java/client/example/src/main/java/org/apache/qpid/example/MapReceiver.java
parentc77eff7738c4bd8424fd2205788a3f34ace13df5 (diff)
downloadqpid-python-390b6b48b9808a1862b48b3e324451b95f465ed4.tar.gz
QPID-3401 Checking the proposed changes into a branch to preserve history & continue working until such time it's accepted into trunk.address-refactor
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/address-refactor@1183532 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/client/example/src/main/java/org/apache/qpid/example/MapReceiver.java')
-rw-r--r--java/client/example/src/main/java/org/apache/qpid/example/MapReceiver.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/client/example/src/main/java/org/apache/qpid/example/MapReceiver.java b/java/client/example/src/main/java/org/apache/qpid/example/MapReceiver.java
index 89db04f8d3..ae71a121de 100644
--- a/java/client/example/src/main/java/org/apache/qpid/example/MapReceiver.java
+++ b/java/client/example/src/main/java/org/apache/qpid/example/MapReceiver.java
@@ -27,8 +27,8 @@ import javax.jms.MapMessage;
import javax.jms.MessageConsumer;
import javax.jms.Session;
-import org.apache.qpid.client.AMQAnyDestination;
import org.apache.qpid.client.AMQConnection;
+import org.apache.qpid.client.AddressBasedDestination;
public class MapReceiver {
@@ -41,7 +41,7 @@ public class MapReceiver {
connection.start();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
- Destination queue = new AMQAnyDestination("ADDR:message_queue; {create: always}");
+ Destination queue = new AddressBasedDestination("message_queue; {create: always}");
MessageConsumer consumer = session.createConsumer(queue);
MapMessage m = (MapMessage)consumer.receive();