[rules-users] Removing facts from statefulknowledgeSession's memory
Mark Proctor
mproctor at codehaus.org
Thu Nov 11 06:39:33 EST 2010
On 11/11/2010 10:46, Ayush wrote:
> Ok so drools will not be garbage collecting the facts (as I'm not calling
> dispose()) and I've to retract them manually.
>
> I was wondering cannot there be any way in which I can define expiry time
> for facts in the same way I declare for events i.e. @expiry
Use a working memory listener. Have it store each inserted object in a
time based eviction queue and it'll remove things for you.
Mark
More information about the rules-users
mailing list