The Rulebase is thread safe, but individual sessions are not, regardless if it is a stateless or stateful. So your first suggestion, creating a new session for each call is correct. <br><br><div class="gmail_quote">2009/6/4 Meny Kobel <span dir="ltr">&lt;<a href="mailto:meny.kobel@gmail.com">meny.kobel@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Hi,<br>I have a number of services(threads) sharing the same RuleBase instance.<br>
Each service is calling execute method and waiting for the results.<br>should each service call StatelessSession session = ruleBase.newStatelessSession() Or I can create one StatelessSession and share it between the services (probably will improve performance)?<br>

<br>Meny<br></div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>