I have two java applications; in the first application I use java.util.logging.Logger class to log messages. And I have to read these log files from second application while the first one is still running.
Since the file lock is exclusive, I can't read log files from my second application. I found some clues from FileLock class but it is in the nio package and it is platform dependent.
Maybe using a database to log messages is the solution; but file based solution will be better.