[rules-users] Using StatelessSession session

David Sinclair dsinclair at chariotsolutions.com
Thu Jun 4 09:42:27 EDT 2009


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.

2009/6/4 Meny Kobel <meny.kobel at gmail.com>

> Hi,
> I have a number of services(threads) sharing the same RuleBase instance.
> Each service is calling execute method and waiting for the results.
> should each service call StatelessSession session =
> ruleBase.newStatelessSession() Or I can create one StatelessSession and
> share it between the services (probably will improve performance)?
>
> Meny
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090604/b50aabaf/attachment.html 


More information about the rules-users mailing list