activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pragmaticjdev <>
Subject Re: Using ActiveMQ For Distributed Replicated Cache
Date Wed, 02 May 2018 06:02:05 GMT
Thanks Tim for your valuable comments.


> so you're using message-driven code rather than managing the connection 
> yourself. In that case you'd want to do the following to handle the error 
> (by clearing the cache): 

On your suggestion of registering an ErrorHandler, I wanted to confirm my
understand - Does the subscriber underneath continuously poll activemq and a
failure in doing so gets the ErrorHandler implementation invoked? 


Tim Bain wrote
> @JmsListener is typically used with a 
> DefaultMessageListenerContainer, which interacts poorly with topics if the 
> subscription is non-durable

Are you suggesting we enable durability? Is there an alternative? I ask
because theoretically we don't need durability of the messages. If the
subscriber is down when the message is published to the queue, it is
perfectly ok as the cache is designed to build as requests are received. We
go to the RDBMS store on a cache miss and the subsequent requests then are
handled by the cache.


Sent from:

View raw message