I would like to process http request in a separate thread. The problem seems to be that the thread is outside the request scope.
I get exceptions with messages like "No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread?"

So - how to start a separate thread (java.util.concurrent.Future) and keep the request scope?