Hi Al, Yep, the associateWith* methods are provided exactly for these kinds of scenarios. Only in rare situations would you want to create a custom SecurityManager subclass.
Cheers, Les On Mon, Dec 7, 2009 at 7:47 AM, aloleary <[email protected]> wrote: > > After digging around I think the most Shiro friendly way is to just follow > the following guidelines: > > http://cwiki.apache.org/confluence/display/SHIRO/Subject > > in my case (Swing/JavaFX) that is "associating with" the background > tasks/threads > > Subject currentUser = SecurityUtils.getSubject(); > currentUser.associateWith(backgroundWorker); > > > > > > aloleary wrote: >> >> I should say that my current approach to solve this involves creating my >> own ThreadLocal based implementation of: >> >> LocalSessionManager >> >> right approach ? >> >> > > > > -- > View this message in context: > http://n2.nabble.com/Standalone-Multiple-Threads-tp4125328p4125848.html > Sent from the Shiro User mailing list archive at Nabble.com. >
