On 2/22/06, Fanory <[EMAIL PROTECTED]> wrote:
>
> Ok, thanks for the answers !
> And the fact that i have tu put synchronized my setup method (which
> instanciates WMs), is it correct ?
> If i don't make this, my result are wrong ...
On a quick scan, I'd think you'd need to synchronize loadRules() (or some
part of it) to avoid a race condition there on the businessRules variable
(simultaneous calls could cause one loadRules() method to overwrite the
rules already loaded by another), but getWorkingMemory() should be ok
without synchronization.
What happens if you don't synchronize it?
- Geoffrey
PS: I hope your catch( Exception ) { return null; } isn't part of your
long-term plans for production code; but that isn't what you're asking
about.
--
Geoffrey Wiseman