Yes, David is correct. What I do in my Job is create a pool of
WorkingMemories from the same RuleBase (we use StatefullSession) in order to
increase the time of response.
2009/6/4 David Sinclair <dsinclair(a)chariotsolutions.com>
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(a)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(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Luis Enrique Silva Valdivieso
Cel. 00 51 1 991546707
Casa 00 51 1 4476616