[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1168) jsr94, create stateful rule session, allow to set keepReference
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Wed Sep 5 20:57:11 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-1168?page=comments#action_12375542 ]
Mark Proctor commented on JBRULES-1168:
---------------------------------------
sigh... more proprietary extensions to JSR94, why not just use the Drools api directly? ;)
This is how JSR94 was intended to be used, stateful sessions must be disposed manually, otherwise you get a memory leak.
We no longer use a WeakHashMap, it proved too buggy and doesn't work in multi-threaded system. So in stateful sessions dispose() must be called, unless the boolean is pass in the creation.
I looked at StatefulSessionImpl the properties passed there provide the globals, I'm not sure how to get a property into this point of the code. Maybe you can do a dig and provide a patch, and then I'll apply it - if it's clean ;)
> jsr94, create stateful rule session, allow to set keepReference
> ---------------------------------------------------------------
>
> Key: JBRULES-1168
> URL: http://jira.jboss.com/jira/browse/JBRULES-1168
> Project: JBoss Rules
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: JSR94
> Affects Versions: 4.0.1
> Reporter: Juergen none
> Assigned To: Mark Proctor
> Priority: Minor
>
> org.drools.jsr94.rules.StatefulRuleSessionImpl currently calls initSession() with constant value true for keepReference. Would be nice if this could be configurable via properties map.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list