Hi, I was just wonderhing how some libraries can detect in which thread they run and "bind" something to it... for example the Mapped Diagnostic Context (MDC) of log4j or Context.enter() from Mozilla Rhino. How could i do that, just in case i'll stumble upon a case where i need this. ;-)
Have a nice day!