What do you expect to happen in the scenario mentioned, assuming you are running
only 1 rules session? Whatever you expect to happen in this case ( e.g. latest update wins ), you will need to implement in your persistence logic If you are using separate rule engines/instances.
by the way, have you looked at drools grid ? I haven’t used it, but appears
to solve a similar problem that you are trying to – distributed computing.
-abhay
From: rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of
Swindells, Thomas
Sent: Tuesday, August 02, 2011 1:47 PM
To:
Subject: Re: [rules-users] running multiple instance of rule engine
I’m not sure I understand the question.
You have two totally independent rule engine on two different servers running with separate JVMs and sessions.
You happen to share data between the two sessions by updating a database but drools has no knowledge of that (they are just java
objects which happen to exist) and they certainly aren’t the same object on both servers.
Temporal reasoning and correlation of events will therefore only happen on the facts that are inserted into that processes working
memory – there’s no way it could be any way else as it only know about itself, there could be 10 or 0 other processes running it won’t know the difference.
The ideal method is to have an application design where each request is totally independent from all other requests (other than
db state) and therefore you do exactly as you have described – there is no other state to share. If you have to share state between them you have a much bigger problem and you probably have to find some other way to partition up the data into separate blocks.
Thomas
From: rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of
Neelesh Deo Dani
Sent: 02 August 2011 07:42
To: rules-users@lists.jboss.org
Subject: [rules-users] running multiple instance of rule engine
|
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data
may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.
NDS Limited. Registered Office:
**************************************************************************************