If you are running 4.0.7 and using the proper MVEL dependecy lib, you should not be facing any concurrency problem, assuming you are sharing the rulebase but not the session.

   []s
   Edson

2008/9/4 toddp2 <tpatch@loftware.com>


I ran into the same issue running JMeter recently.  I am getting the same
stack trace.  I checked my version and I am using 4.0.7 of Drools.  Was this
resolved by going to 4.0.7 for you?  Is there anything else to check?

Todd






  You must update to 4.0.7. You are probably facing the issues we had in
4.0.3.

  []s
  Edson

2008/5/7 Barath <barathguna@gmail.com>:

>
> Edson,
> I am using  4.0.3 version.
>
> In my code,
>  * For each thread new rule base and StatefulSession is created.
>  * Then why i am getting the previously mentioned exceptions(which i
> posted
> in the first message) for few    threads only while other works fine.
>  * Your suggestions please,
>     " 1 . Am i getting this error bcoz of the global list? or any other
> reason?
>      2 . How to solve this problem?"
>
> ~Barath.
>
>
> Edson Tirelli-3 wrote:
> >
> >    Barath,
> >
> >    What version of drools are you using?
> >
> >    The drools rulebase is designed to be shared among multiple threads.
> > The
> > working memory (session) is not.
> >    Having said that, we had a couple bugs in the past regarding
> > multi-thread
> > environments, and so you must use 4.0.7 version that is about to be
> > released. For you test, while you wait for the official release, you can
> > checkout the code and built it from here:
> >
> > http://anonsvn.labs.jboss.com/labs/jbossrules/branches/4.0.x/
> >
> >    []s
> >    Edson
> >
> > 2008/5/5 Barath <barathguna@gmail.com>:

--
View this message in context: http://www.nabble.com/Can-i-use-drools-in-multithreaded-environment--tp17053936p19310976.html
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
Edson Tirelli
JBoss Drools Core Development
JBoss, a division of Red Hat @ www.jboss.com