ActiveMQ issue with UNC path an NFS shared directory

Problem Description

In a Windows environment, when configuring ActiveMQ for master/slave setup, the following UNC path to an NFS share drive is set in the ActiveMQ configuration file activemq.xml:


  <kahaDB directory="\\server_ip\amqshare\kahadb" />

This prevents the ActiveMQ master from starting, with the following error message:


| INFO | Database \\server_ip\amqshare\kahadb\lock is locked by another server. 
This broker is now in slave mode waiting a lock to be acquired | | main


Root Cause

NFS file lock does not work on the Java level. The Lock operation is not supported for NFS share on Windows using UNC with Microsoft NFS client.



NFS mount the share drive, and map it to the drive, for example, and use P:\...\kahadb in activemq.xml:


  <kahaDB directory="P:\kahadb" />
Version history
Revision #:
4 of 4
Last update:
‎06-22-2018 12:48 PM
Updated by:
Labels (2)