[rules-users] Shouldn't inserted objects be finalized after session.dispose()?

Mark Proctor mproctor at codehaus.org
Fri Apr 11 08:57:30 EDT 2008


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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>   




More information about the rules-users mailing list