Hello,
I'm using an Aggregator (using the default in memory storage) as a sort of temporary repository useful for the logic of my flow.
Now I need to establish different expiration times for the message groups (those times will depend on some application specific traits of the stored messages.) At first I thought in extending SimpleMessageGroup and overriding the getTimestamp() method to some future time (and expiring the MessageStore with a timeout of zero, every second.) The problem is that I can't find a way to inject such a derived class.
Looking in SimpleMessageStore I've found:
Any suggestion? Maybe override SimpleMessageStore.getMessageGroup()?Code:public MessageGroup getMessageGroup(Object groupId) { Assert.notNull(groupId, "'groupId' must not be null"); SimpleMessageGroup group = groupIdToMessageGroup.get(groupId); if (group == null) { return new SimpleMessageGroup(groupId); } return new SimpleMessageGroup(group); }
Thanks!


Reply With Quote