<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,&nbsp;<div><br></div><div>I have noticed that StatelessKnowledgeSessionImpl.execute (5.1.0.M1) methods do not call dispose()&nbsp;</div><div>method in contrary to the documentation (<a href="http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e1797">http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-expert/html_single/index.html#d0e1797</a>)</div><div><br></div><div><div class="titlepage"><div><div><h3 class="title"><a id="d0e1797">3.3.7.&nbsp;StatelessKnowledgeSession</a></h3></div></div></div><p><a id="d0e1797">The <code class="code">StatelessKnowledgeSession</code> 
wraps the
    <code class="code">StatefulKnowledgeSession</code>, instead of 
extending it. Its main
    focus is on decision service type scenarios. It avoids the need to 
call
    <code class="code">dispose()</code>. Stateless sessions do not 
support iterative
    insertions and the method call <code class="code">fireAllRules()</code>
 from Java code;
    the act of calling <code class="code">execute()</code> is a 
single-shot method that
    will internally instantiate a <code class="code">StatefulKnowledgeSession</code>,
 add
    all the user data and execute user commands, call
    <code class="code">fireAllRules()</code>, and then call <code class="code">dispose()</code>.</a></p></div><div><br></div><div>Is this a bug or&nbsp;has&nbsp;something &nbsp;changed between version 5.0.1 and 5.1.0 ?</div><div><br></div><div><br></div><div>BR,&nbsp;</div><div><br></div><div>Savvas Triantafyllou</div></body></html>