Is there a way to intercept SimpleAsyncTaskExecutor
? Basically I am trying to intercept every time SimpleAsyncTaskExecutor
is invoked.
On top of that what I am really trying to do is pass on a RequestScope bean. I found How to enable request scope in async task executor, but the problem is that I cannot reuse threads. I need a new thread created every time.
Any idea how I could forward Request Scoped beans to an async thread or how I could intercept @Async
for a SimpleAsyncTaskExecutor
?
Thanks, Brian