Hi all,

I am using JMS 11.1 (can't install java 8) and trying to subscribe to a
specific subject under 'amq.topic' (broker is a QPID 0.36 C++ broker)

This works (except I get all messages sent to amq.topic):
TopicSubscriber sub =
session.createSubscriber(session.createTopic("amq.topic"));

I have tried:
TopicSubscriber sub =
session.createSubscriber(session.createTopic("amq.topic/someKey");
TopicSubscriber sub =
session.createSubscriber(session.createTopic("topic://amq.topic?routingKey=someKey");
TopicSubscriber sub =
session.createSubscriber(session.createTopic("amq.topic?routingKey=someKey");
(and numerous various on this same theme) that I have found online.  

Various older docs make it look like this SHOULD work (it does on C++ side
for qpid::messaging::Address).

Everything I have tried causes an "amq:not-found" error on the broker.  The
broker appears to be using the entire topic (i.e. "amq.topic/someKey") as
the exchange, instead of exchange 'amq.topic' with subject/routingKey of
'someKey'.  Broker prints out "Error on attach: Node not found:
amq.topic/someKey" (where Node matches topic I created).

I realize that I can use message selectors when I create the subscriber to
filter the messages however that isn't an ideal solution for me for several
reasons.  

Any suggestions on how I can get subject/routingKey filtering via JMS?

Thanks!

~nate



--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Subscribing-to-a-topic-subject-using-JMS-11-1-client-tp7663870.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to