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
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users