Currently <task:annotation-driven /> uses only one executor for all @Async methods. It can be useful (and is often required) to have multiple executors (and hence multiple thread pools for example). This can be achieved by an optional parameter of @Async: @Async("executorBeanId")
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered:
This is certainly possible, but would require fairly significant refactoring within AsyncAnnotationBeanPostProcessor and other components. I've placed this in the General Backlog and labeled it as under-consideration in order to hear from other users in the form of votes and use cases. If this proves to have reasonable demand, we can consider it.