[rules-users] Drools Concurrent Execution causes Blocked Threads

Wolfgang Laun wolfgang.laun at gmail.com
Mon Sep 2 04:21:52 EDT 2013


On 02/09/2013, lalit2583 <lalit2583 at gmail.com> wrote:
> Hi,
> We are creating different StatefulKnowledge Session for different threads
> all this StatefulKnowledgeSession are created from same KnowledgeBase,
> KnowledgePackage. Is this an issue ?

It should not cause a problem. Synchronisation among user objects
(facts, globals) is user's burden.

> You are correct the API doesnt tells
> if
> StatefuleKnowledgeSession is not thread safe. If I use
> StatelessKnowledgeSession will it resolve the issue ?

Possibly: a Stateless KS is discarded after an execute, so you might appear
to avoid running into whatever caused your problem, but without
removing the cause.

> But as per my knowledge internally StatelessKnowledgeSession uses
> StatefuleKnowledgeSession.

That's what the documentation says.

-W

>
> Regards,
> Lalit.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-Concurrent-Execution-causes-Blocked-Threads-tp4025632p4025749.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list