AnsweredAssumed Answered

Thread implications of IdentityService.setAuthenticatedUser

Question asked by tstephen on Jul 27, 2011
Latest reply on Aug 5, 2011 by jbarrez

I've been looking at IdentityService.setAuthenticatedUserId(String) for the first time and wonder how this is intended to be used in a multi-threaded environment?

AFAIK the ProcessEngine is a singleton that returns instances of the various services. Are these instances also singletons? I guess not since using this method would then have side-effects on the other thread(s).

So as long as each thread creates its own identity service all will be well?

Thanks in advance for clarifying