|
From: Nick F. <ni...@ox...> - 2007-06-15 12:23:50
|
I'd guess this might be becoming an FAQ, but I can't find an answer anywhere. I've got an application that is likely to be reasonably long running, say a week, before being reset. Logging messages is nice and easy, just plug in an appropriate log4j configuration file and I can have all the rolling logs i want. However I can't see a similar way of dealing with MessageStore. I suspect that for fix resend purposes i'll never need more than the last 10 minutes of messages. Is there a standard MessageStore implementation that either just forgets older messages, or a way of getting FileStore to roll old messages over (say every day)? This would allow old messages to be archived or deleted without affecting a running app. If not, would such a message store be a useful addition to the codebase? I'm thinking of a MemoryStore with a time limit threshold, or a FileStore with various rolling configuration options similar to log4j. Nick |