Accessing scoped proxy beans within Threads of

后端 未结 4 1239
庸人自扰
庸人自扰 2020-12-02 13:45

I have a web application running in tomcat where I\'m using a ThreadPool (Java 5 ExecutorService) to run IO intensive operations in parallel to improve performance. I would

4条回答
  •  囚心锁ツ
    2020-12-02 14:16

    Could you try it the other way round? Use a data container that's stored in request scope and give it to the thread pool (perhaps put it into a queue, so that the thread pool can take one data container at a time, work on it, mark it as "done" and continue with the next one).

提交回复
热议问题