summaryrefslogtreecommitdiff
path: root/qpid
diff options
context:
space:
mode:
authorArnaud Simon <arnaudsimon@apache.org>2008-01-18 13:17:46 +0000
committerArnaud Simon <arnaudsimon@apache.org>2008-01-18 13:17:46 +0000
commitee868d743079b6183dd1efdeae54443504bb37d2 (patch)
tree3564aea0793b6de8862612f746d45c053ee82d93 /qpid
parent70f2437cc12aa48958a0ff3f7a1d59ce29a5eb47 (diff)
downloadqpid-python-ee868d743079b6183dd1efdeae54443504bb37d2.tar.gz
Added warning
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@613155 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid')
-rw-r--r--qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/pubsub/Listener.java38
1 files changed, 29 insertions, 9 deletions
diff --git a/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/pubsub/Listener.java b/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/pubsub/Listener.java
index 8098f62be9..c8e5d89099 100644
--- a/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/pubsub/Listener.java
+++ b/qpid/java/client/example/src/main/java/org/apache/qpid/example/jmsexample/pubsub/Listener.java
@@ -101,8 +101,13 @@ public class Listener
javax.jms.TopicSubscriber messageSubscriber=session.createSubscriber(topic);
// Bind each topic queue to the control queue so we know when to stop
- // Warning: this is an AMQP specific code
- ((TopicSubscriber) messageSubscriber).addBindingKey( topic, "control");
+ /**
+ * The following line uses a temporary, experimental
+ * Qpid extension to add another binding to the topic's private queue.
+ * This extension is expected to be replaced by an alternative,
+ * less intrusive scheme in the very near future.
+ */
+ ((TopicSubscriber) messageSubscriber).addBindingKey(topic, "control");
// Set a message listener on the messageConsumer
messageSubscriber.setMessageListener(new MyMessageListener("usa"));
@@ -114,8 +119,13 @@ public class Listener
messageSubscriber=session.createSubscriber(topic);
// Bind each topic queue to the control queue so we know when to stop
- // Warning: this is an AMQP specific code
- ((org.apache.qpid.jms.TopicSubscriber) messageSubscriber).addBindingKey( topic, "control");
+ /**
+ * The following line uses a temporary, experimental
+ * Qpid extension to add another binding to the topic's private queue.
+ * This extension is expected to be replaced by an alternative,
+ * less intrusive scheme in the very near future.
+ */
+ ((org.apache.qpid.jms.TopicSubscriber) messageSubscriber).addBindingKey(topic, "control");
// Set a message listener on the messageConsumer
messageSubscriber.setMessageListener(new MyMessageListener("europe"));
@@ -127,8 +137,13 @@ public class Listener
messageSubscriber=session.createSubscriber(topic);
// Bind each topic queue to the control queue so we know when to stop
- // Warning: this is an AMQP specific code
- ((org.apache.qpid.jms.TopicSubscriber) messageSubscriber).addBindingKey( topic, "control");
+ /**
+ * The following line uses a temporary, experimental
+ * Qpid extension to add another binding to the topic's private queue.
+ * This extension is expected to be replaced by an alternative,
+ * less intrusive scheme in the very near future.
+ */
+ ((org.apache.qpid.jms.TopicSubscriber) messageSubscriber).addBindingKey(topic, "control");
// Set a message listener on the messageConsumer
messageSubscriber.setMessageListener(new MyMessageListener("news"));
@@ -140,9 +155,14 @@ public class Listener
messageSubscriber=session.createSubscriber(topic);
// Bind each topic queue to the control queue so we know when to stop
- // Warning: this is an AMQP specific code
- ((org.apache.qpid.jms.TopicSubscriber) messageSubscriber).addBindingKey( topic, "control");
-
+ /**
+ * The following line uses a temporary, experimental
+ * Qpid extension to add another binding to the topic's private queue.
+ * This extension is expected to be replaced by an alternative,
+ * less intrusive scheme in the very near future.
+ */
+ ((org.apache.qpid.jms.TopicSubscriber) messageSubscriber).addBindingKey(topic, "control");
+
// Set a message listener on the messageConsumer
messageSubscriber.setMessageListener(new MyMessageListener("weather"));