Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-213

Avoid creation of more than one jackrabbit instance with the same configuration

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0
    • jackrabbit-core
    • None

    Description

      based on the mailing list archive, it seems new users often run more than one jackrabbit instance with the same configuration. I propose to lock the repository by creating an empty file called ".lock" at the repository home on startup and remove it on shutdown.
      If the lock file is found on jackrabbit startup the following message will be logged:
      "The repository home at " + home.getAbsolutePath() + " appears to be in use. If you are sure it's not in use please delete the file at " + lock.getAbsolutePath() + ". Probably the repository was not shutdown properly."

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            edgarpoce Edgar Ruben Poce
            edgarpoce Edgar Ruben Poce
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment