[esb-issues] [JBoss JIRA] Closed: (JBESB-642) JBossRulesRouter does not dispose of WorkingMemory
Kurt Stam (JIRA)
jira-events at lists.jboss.org
Mon Jun 25 11:08:16 EDT 2007
[ http://jira.jboss.com/jira/browse/JBESB-642?page=all ]
Kurt Stam closed JBESB-642.
---------------------------
Resolution: Done
Ah good catch it moved from WorkingMemory to StatefulSession.
> JBossRulesRouter does not dispose of WorkingMemory
> --------------------------------------------------
>
> Key: JBESB-642
> URL: http://jira.jboss.com/jira/browse/JBESB-642
> Project: JBoss ESB
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Content Based Routing
> Affects Versions: 4.2 Milestone Release 2
> Reporter: Jeff DeLong
> Assigned To: Kurt Stam
> Fix For: 4.2
>
>
> In examining the JBossRulesRouter code it does not dispose of workingMemory (statefulSession) at the end of the method.
> WorkingMemory workingMemory = ruleBase.newStatefulSession();
> logger.log(Level.DEBUG,
> "Obtained message=" + message + " with ruleSet=" + ruleSet);
> workingMemory.setGlobal("destinations", destinations);
> if (objectList!=null) {
> for (Object object : objectList) {
> workingMemory.assertObject(object);
> }
> }
> workingMemory.assertObject(message);
> logger.log(Level.DEBUG, "Fire the JBossRules Engine");
> workingMemory.fireAllRules();
> logger.log(Level.DEBUG,
> "Outgoing Destinations: " + destinations);
> return destinations;
> }
> I believe it should:
> i.e.,
> WorkingMemory workingMemory = ruleBase.newStatefulSession();
> ...
> workingMemory.dispose();
> This allows garbage collection of the workingMemory.
--
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 esb-issues
mailing list