[rules-users] Using StatelessSession session

Luis Silva lesilvav at gmail.com
Thu Jun 4 10:05:02 EDT 2009


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 at 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 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
>>
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090604/e93ce204/attachment.html 


More information about the rules-users mailing list