activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Green <james.mk.gr...@gmail.com>
Subject Subscribing with a selector over stomp isn't working
Date Fri, 20 Aug 2010 15:30:14 GMT
I'm using PHP with Stomp for connectivity. Where $o is my Stomp client:

$o->subscribe("/queue/message.status.outbox", array("selector" =>
"AccountId = 21211"));

Leaves the following trace:

2010-08-20 16:20:54,362 [127.0.0.1:44882] TRACE StompTransportFilter
        - Received:
CONNECT
passcode:
login:


2010-08-20 16:20:54,364 [127.0.0.1:44882] TRACE StompTransportFilter
        - Sending:
CONNECTED
session:ID:sutton-42986-1282316912321-6:11


2010-08-20 16:20:54,407 [127.0.0.1:44882] TRACE StompTransportFilter
        - Received:
SUBSCRIBE
selector:AccountId = 21212
ack:client
activemq.prefetchSize:1
destination:/queue/message.status.outbox

But no messages come down. I can see on my broker there is one, with
an 'AccountId' property set to the number in question.

Interestingly the messages (not all of which were for the same account
id) were all sent from a remote broker and they were all transmitted
over to this local broker as soon as I subscribed despite my selector
being in place. They now sit locally without any collection unless I
subscribe without my selector argument.

Clearly something in my request is not right. What am I doing wrong?

James

Mime
View raw message