Does threadlocal variable work with JBoss drools

241 Views Asked by At

I am using JBoss drools 5.5.0.final with mvel2 (2.1.3) dialect

I am facing issue as thread local variable set before ksession.fireAllRules(), but the thread local variable seems to be unset within flow.

Is using threadlocal variables in Drools/mvel is bad practice? What are possible reasons and options.

EDIT:I access this threadlocal varibale in java class which gets invoked through drools. Its kind of application specific execution context information stored in that threadlocal variable.

This problem is observed in high concurrency(more than 4 threads executing same process)

0

There are 0 best solutions below