Re: [rules-users] Best approach for handling parallel requests for a stateful rules session

2011-03-08 Thread Greg Barton
jkrupka > Subject: Re: [rules-users] Best approach for handling parallel requests for a > stateful rules session > To: rules-users@lists.jboss.org > Date: Tuesday, March 8, 2011, 12:42 PM > Took a look... thanks.  I'm not > sure that they will help me though - do th

Re: [rules-users] Best approach for handling parallel requests for a stateful rules session

2011-03-08 Thread jkrupka
Took a look... thanks. I'm not sure that they will help me though - do the async methods actually look to see if fireAllRules is already running somewhere else and synchronize the calls? Or do they just wrap a Callable around it so that if your rules take a long time to run you can do something el

Re: [rules-users] Best approach for handling parallel requests for a stateful rules session

2011-03-08 Thread Greg Barton
Take a look at the org.drools.StatefulSession.async*() methods. I've used them in a multithreaded context before. --- On Tue, 3/8/11, jkrupka wrote: > From: jkrupka > Subject: [rules-users] Best approach for handling parallel requests for a > stateful rules session >

[rules-users] Best approach for handling parallel requests for a stateful rules session

2011-03-08 Thread jkrupka
We've been over multiple ways of handling multiple parallel requests for a stateful rules session and I want to make sure the approach we have settled on makes sense. We will be getting multiple requests at a time to run some score calculation rules for various products. In the past we used state