STOMP message expiry and topics with durable subscribers

View: New views
3 Messages — Rating Filter:   Alert me  

STOMP message expiry and topics with durable subscribers

by Aleksandar Ivanisevic-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



fuse activemq 5.3.0-4 + STOMP PHP client from
http://code.google.com/p/stompcli/downloads/list

If I set expires: header to expiry timestamp in milliseconds and send
a message to a queue it all works as expected, if noone is subscribed
it disappears after the time is up.

However, If I send the same messaage with the same headers to a topic
with durable subscribers and the subscribers are not there, the
message just disappears.

is it supposed to be like that or should the topic with durable
subscribers behavie just like a queue?



Re: STOMP message expiry and topics with durable subscribers

by Dejan Bosanac :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

are you sure you're sending persistent messages? It should work as for
queues.

I just created a test case and it works fine (for pure jms)

http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/DurableSubscriptionTestSupport.java?rev=833034&r1=833033&r2=833034&view=diff

If it still doesn't work, can you please create a test case and raise jira?


BTW. Here's some docs on durable subscribers with PHP client

http://stomp.fusesource.org/documentation/php/book.html#_durable_subscribers

You can also consider using 1.0.0 from fuseforge, as it contains a lot of
bug fixes.

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Tue, Nov 3, 2009 at 4:50 PM, Aleksandar Ivanisevic <
aleksandar@...> wrote:

>
>
> fuse activemq 5.3.0-4 + STOMP PHP client from
> http://code.google.com/p/stompcli/downloads/list
>
> If I set expires: header to expiry timestamp in milliseconds and send
> a message to a queue it all works as expected, if noone is subscribed
> it disappears after the time is up.
>
> However, If I send the same messaage with the same headers to a topic
> with durable subscribers and the subscribers are not there, the
> message just disappears.
>
> is it supposed to be like that or should the topic with durable
> subscribers behavie just like a queue?
>
>
>
Dejan Bosanac

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net

Re: STOMP message expiry and topics with durable subscribers

by Aleksandar Ivanisevic-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dejan Bosanac <dejan@...> writes:

> Hi,
>
> are you sure you're sending persistent messages? It should work as for
> queues.

Sorry, stupid me, that was it ;)

[...]


--
Aj si ti taj svoj svepametni stav naguraj u guzicu kad već nemaš šta
drugo. Pun mi kufer vas koji mislite da ste pobrali svu pamet svijeta i da
morate svakom loncu poklopac biti. - kzendra, hr.comp.os.linux