You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by typisk <ca...@snuffyweb.com> on 2010/01/23 12:55:20 UTC

Send 'cache' on connect

Hey.

Basically I want to configure topics to be cached and let's consumers
query that cache on connect. I'm going to use STOMP protocol, and the client
is javascript. (Webapplication).

This is very useful in GUI applications where a GUI can come up
after the server has published something - the GUI can query the cache
to get the all message published (preferable with 1 message, instead of
sending for example 50 published messages).

Any ideas how to do this with ActiveMQ? 
-- 
View this message in context: http://old.nabble.com/Send-%27cache%27-on-connect-tp27285420p27285420.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Send 'cache' on connect

Posted by Ivan <xh...@gmail.com>.
http://activemq.apache.org/per-destination-policies.html
Define a FixedCountSubscriptionRecoveryPolicy and set MaximumSize should
work, however, it may affect the efficiency.

2010/1/23 typisk <ca...@snuffyweb.com>

>
> Hey.
>
> Basically I want to configure topics to be cached and let's consumers
> query that cache on connect. I'm going to use STOMP protocol, and the
> client
> is javascript. (Webapplication).
>
> This is very useful in GUI applications where a GUI can come up
> after the server has published something - the GUI can query the cache
> to get the all message published (preferable with 1 message, instead of
> sending for example 50 published messages).
>
> Any ideas how to do this with ActiveMQ?
> --
> View this message in context:
> http://old.nabble.com/Send-%27cache%27-on-connect-tp27285420p27285420.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
Ivan