Skip to content

Add support for custom collection prefix in MongoDB Job repository #4980

Closed

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.

Activity

  1. added
    status: waiting-for-triage
    on Sep 22, 2025
  2. removed
    status: waiting-for-triage
    on Sep 22, 2025
  3. added this to the 6.0.0 milestone on Sep 22, 2025
  4. SHINMH commented on Sep 29, 2025

    @SHINMH
    Contributor

    Hi, I’m interested in working on this issue. Could I take this up?

  5. fmbenhassine commented on Sep 30, 2025

    @fmbenhassine
    Contributor

    @SHINMH Sure, thank you for your offer to help!

    Contributions are welcome.

  6. removed this from the 6.0.0 milestone on Nov 13, 2025
  7. added this to the 6.1.0 milestone on Nov 14, 2025
  8. changed the title [-]collectionPrefix for MongoDB Job repository[/-] [+]Add support for custom collection prefix in MongoDB Job repository[/+] on Sep 10, 2026
  9. modified the milestones: 6.1.0, 6.1.0-M2 on Sep 10, 2026
  10. added a commit that references this issue on Sep 10, 2026
    697913a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions