[Building Sakai] Threads, sessions and security advisor

Stephen Marquard stephen.marquard at uct.ac.za
Fri Sep 18 10:42:57 PDT 2009


Hi all,

For the SMS service, we have a queue runner (a thread started by a component) which can spawn multiple threads which execute concurrently to process incoming SMS messages (each in its own thread).

So if thread A and thread B (i.e. classes implementing Runnable) are started, does each share the same session for the purposes of (i) setUser and (ii) security advisors, or are they independent?

i.e. could one set a different effective user and/or security advisors safely in each thread and have them work independently?

Regards
Stephen




More information about the sakai-dev mailing list