activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From didyeah971 <didyeah...@yahoo.fr>
Subject Re: Web Console and binary version
Date Thu, 03 May 2007 16:25:00 GMT

Hi, 
could i have some example of how to use selectors with php Stomp connector.
Because when i'am triying to implement it, my client get blocked and i don't
see any other way to retrieve all messages in the queue ( or topic).
Here's how i do : 

$properties['selector']=" 'type' = 'any'";
$c->subscribe("/queue/FOO", $properties);


Knowing that i set a header 'id' at 'any'.
Or if there's another way to retrieve, all messages from queue, with an
infinite loop, ended by "Ctrl + C".

Thx
Did

James.Strachan wrote:
> 
> On 5/2/07, didyeah971 <didyeah971@yahoo.fr> wrote:
>>
>> It runs ok for me now, I tested the latest 4.2 Snapshot version, and the
>> web
>> console is much more comfortable to me.
>> I have some more additional questions about Stomp : is it possible to
>> implement the message selectors with the php client ?
> 
> Yes - just pass the selector when creating a consumer.
> 
> http://stomp.codehaus.org/Stomp+JMS
> 
> 
>> what about browsing the queues ? I mean, i just want to retrieve all my
>> messages but i can retrieve them one by one, unless with an infinite loop
>> while (true)
>> {$res = $c->readFrame();}
> 
> Stomp doesn't support browsing queues yet; you can subscribe using
> client acknowledge, receive a bunch of messages then unsubscribe
> without consuming them.
> 
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/Web-Console-and-binary-version-tf3658478s2354.html#a10307514
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message