Sylvain Gaudan wrote:
Hi,
I thought that inserted objects should be finalized by the GC once
a statefulsession is dropped by session.dispose(). However, this is
done only if I retract handles one by one (session.retract(it.next()))
using the method session.iterateFactHandles() and then
session.dispose().
I don't really see a need to iterate each handle and kill it, it would
just make session destroying heavy.
Is it wrong to expect that the object should be dropped by the GC
once the session is disposed?
Yes after dispose() is called if there are no other references to
objecst thye should be available for GC.
Thank you for your help.
Kind regards,
Sylvain.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users