Skip to content

collectionPrefix for MongoDB Job repository #4980

@gyuyeol

Description

@gyuyeol

Expected Behavior

EnableMongoJobRepository should accept a collectionPrefix so that a prefix can be specified for the MongoDB collections used by the job repository.

Current Behavior

At the moment this feature does not exist. Adding it would mirror the existing tablePrefix option in EnableJdbcJobRepository, enabling multi‑application support, environment isolation, and easier management of the underlying collections.

Context

A workaround could be implemented by modifying MongoJobRepositoryFactoryBean and a few DAO classes. However, it would be preferable to provide this functionality as a built‑in feature.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions