So that's the default behavior of the Apollo based broker, but not ActiveMQ 5.x. Think the best you can do is to send messages async to the broker, with persistence enabled.
Regards, Hiram FuseSource Web: http://fusesource.com/ On Tue, Feb 22, 2011 at 2:43 AM, Lionel Cons <lionel.c...@cern.ch> wrote: > As far as I understand, we currently have two opposite behaviours. > > With persistence, received messages are safely stored on disk, > yielding to low receive rates. When the broker restarts (either after > a crash or a voluntary restart), these messages are still available. > > Without persistence, received messages are only stored in memory, > yielding to high receive rates. However, these messages are lost after > a restart, even a voluntary one. > > Is there a way to tell ActiveMQ to store the non-persistent messages > to disk (and keep them upon restart) when it has time to do so? > > Ideally, it would be nice to have a per destination policy that would > swap to disk non-persistent messages that have not been consumed for > some (configurable) time. It would have two benefits: freeing memory > and allowing to preserve these messages after a broker restart. > > Cheers, > > Lionel Cons >