How to enable request scope in async task executor
We ran into the same problem – needed to execute code in the background using @Async, so it was unable to use any Session- or RequestScope beans. We solved it the following way: Create a custom TaskPoolExecutor that stores scoped information with the tasks Create a special Callable (or Runnable) that uses the information to … Read more