activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: Persist Last Image
Date Fri, 11 Apr 2014 11:31:07 GMT
take at peek at http://activemq.apache.org/subscription-recovery-policy.html

there is a nice (if trivial) custom example at
https://github.com/apache/activemq/blob/20f384ce59b758a0f3c1b0e0620e2efd58ca230a/activemq-unit-tests/src/test/java/org/apache/activemq/test/retroactive/RetroactiveConsumerWithMessageQueryTest.java


One option may be back the query with a queue, purge and browse[0] to
get the last image when necessary.

On 10 April 2014 02:53, Charels_Li <iamleejt@gmail.com> wrote:
> Hi all. Recently we have such a need in our project. We would like to always
> persist the last sent message. So in case of a system failure, we would be
> able to recover the message and resend to the consumer once they are
> reconnected.
>
> My plan was to save the message right after it was sent and by doing in a
> rolling fashion, there is always the last message on the disk. However, this
> method seems not right.
>
> Does anyone have an idea how this could be done?
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Persist-Last-Image-tp4680193.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://redhat.com
http://blog.garytully.com

Mime
View raw message