On Tue, Oct 26, 2010 at 3:50 PM, Bruno
Freudensprung
<bruno.freudensprung@temis.com>
wrote:
Hi,
According to what I've read so far, you can reuse Stateless sessions.
In particlar I've seen unit tests creating a Stateless session in a
@BeforeClass method, then this session was re-used across multiple tests
methods "pushing" different data-sets into that unique session instance
using commands (created with the org.drools.command.CommandFactory
class).
Regards,
Bruno.
espen a écrit :
> Hi,
>
> we have an application with a lot of rules in a cached rulebase.
When we
> profile our application we see that about 30% of the time is used
in
> rulebase.newStatlessSession(). The time is basically used loading
classes.
>
> The question is, is it possible to create a pool of
StalessSessions and
> reuse them, or will this create problems.
>
> Regards
> Espen
>
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users