No nothing is thread safe in Drools 3.0 - unless you use the SyncrhonisedWorkingMemory. then it just adds a synch method to each of thte WorkingMemory methods. With regards to "application data" no called globals - if you use that wrapper the workingMemory.setGloba(...) is synchronized but ofcourse if you change fields inside of a global already in the working memory then that is up to you, its not something Drools can control.

Mark
Susan G Lee wrote:
Hi,

Is the application data in the drl files thread safe? For example, if one thread comes in the call a rule that requires to modify the application data. Before it finishes, another thread comes in to modify the same application data variable and completes the processing. would the first thread see the second thread's modification or it will still see the value that it modified to?



Thanks,
Susan G. Lee

Reply via email to