From: Steve B. <st...@te...> - 2007-06-18 18:13:09
|
> 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. There's not a rolling file implementation for the message store. > 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. I'm not sure how useful a rolling store would be. However, there's room for improvement in the caching of the messages for resend. Currently, the file store loads all messages into memory (using MemoryStore). That can slow down server start time and can consume a lot of memory for long, active sessions. Another option might be to use something like JBossCache or EhCache (or similar) to store the messages with a backing file but configure the cache to delete messages that are old than a specified age. We would need to do some experimentation to be sure the performance is good enough. Steve |