| Well ThreadLocal variable is usually use to pass value through the same call. Nowadays, we use cdi for this. The solution you have tried is very bound to the thread management of application server. I'm not sur if by batch you mean "mono-thread" but If you don't have a limite number of thread that seems to me quite normal that you don't see any performance improvement. |