[rules-users] StatelessKnowledgeSessionImpl.execute does not call dispose() method

Σάββας Τριανταφύλλου striantafyllou at betaconcept.com
Mon May 24 08:40:12 EDT 2010


Hi, 

I have noticed that StatelessKnowledgeSessionImpl.execute (5.1.0.M1) methods do not call dispose() 
method in contrary to the documentation (http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e1797)

3.3.7. StatelessKnowledgeSession

The StatelessKnowledgeSession wraps the StatefulKnowledgeSession, instead of extending it. Its main focus is on decision service type scenarios. It avoids the need to call dispose(). Stateless sessions do not support iterative insertions and the method call fireAllRules() from Java code; the act of calling execute() is a single-shot method that will internally instantiate a StatefulKnowledgeSession, add all the user data and execute user commands, call fireAllRules(), and then call dispose().


Is this a bug or has something  changed between version 5.0.1 and 5.1.0 ?


BR, 

Savvas Triantafyllou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100524/1f2a7819/attachment.html 


More information about the rules-users mailing list