Hi All,

 

                I am using JBOSS Drools 5.0. The problem which I am currently facing is concurrent execution of Rules.

I am using RuleBase to get Session object

i.e.

RuleBase ruleBase = RuleBaseFactory.newRuleBase();

StatelessSession session = ruleBase.newStatelessSession();

Session.execute(ArrayList of Facts);

 

In the application I am creating separate RuleBase and session object for each request of process.

 

Now the Problem is as follows :-

There are currently two users logged in the System.

Suppose User 1 clicks a button to process 100 members of Data using Rules and User 2 clicks same  button to process same 100 members of Data,

When request of User 1 comes to Rule Engine, it starts processing its data but as User 2 comes to Rule Engine, The engine stops processing the request

of User 1 and continues processing Request of User 2 because of which I am not getting same output in both the cases though the Input to Rules is same.

 

If I do the process one after the another then I am getting correct values but it is not working for Concurrent execution.

 

Thanks & Regards,

Nikhil S. Kulkarni

 

 




MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~