Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-528

The "lock" directory should be configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      Artemis allows the broker owner to change most of the paths used, see for instance the "*-directory" elements like "paging-directory". There is one major exception though.

      The directory holding the cli.lock file is currently hard-coded in artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Configurable.java (sic):

         protected File getLockPlace() throws Exception {
            String brokerInstance = getBrokerInstance();
            if (brokerInstance != null) {
               return new File(new File(brokerInstance),"lock");
            }
            else {
               return null;
            }
         }
      

      Could you please allow changing the name of this directory?

      Ideally, it could appear like the other "*-directory" elements in broker.xml. If this is too late, it could come from a Java property such as artemis.lockdir.

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              lionel.cons Lionel Cons
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: