Skip to content

Allow @Async to specify which executor to use [SPR-7043] #11705

@spring-projects-issues

Description

@spring-projects-issues

Kenny MacLeod opened SPR-7043 and commented

I would like to see an attribute added to the @Async annotation, which allows the specification of the name of the executor bean to be used for invocations on that method. This would be an alternative to specifying the executor name in the <task:annotation-driven/> element.

The use case is that sometimes you want multiple executors in a context, and different @Async-annotated beans need to use different executors. Currently, there is no way to do this - all @Async-annotated beans in a given context must use whichever executor is configured in the <task:annotation-driven/> element.


Affects: 3.0.1

Issue Links:

2 votes, 2 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issuetype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions