i tried to save an attribute via an async servlet call to get it later from another page. i did it like this:
class x extends remoteserviceservlet
...
final Object attribute = getThreadLocalRequest().getSession().getAttribute(variableName);
....
but this doesn't work. the result seems to depend on a mysterious something. i suspect it being the thread itself. if i store something on page a, it's not visible in page b's session. if i return to page a, it's there again. sometimes. how can i save attributes in a way that stores them in the "real session" across all pages?
is the session i get via getThreadLocalRequest() depending in the current thread? if yes how to get the actual session?