[esb-issues] [JBoss JIRA] Updated: (JBESB-642) JBossRulesRouter does not dispose of WorkingMemory

Mark Little (JIRA) jira-events at lists.jboss.org
Fri Jun 22 15:51:52 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBESB-642?page=all ]

Mark Little updated JBESB-642:
------------------------------

        Fix Version/s: 4.2
    Affects Version/s: 4.2 Milestone Release 2
                           (was: 4.2)

> 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