Skip to content

MapJobRegistry does not pick up jobs from child application context #5197

@jpraet

Description

@jpraet

With #4855, JobRegistrySmartInitializingSingleton has been deprecated, and instead MapJobRegistry implements SmartInitializingSingleton to auto-register the jobs it discovers in its application context.

But this does not work for jobs that are defined in a child application context.

In the documented example, if you add a MapJobRegistry to the CommonBatchConfiguration, you will notice that the registry remains empty.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions