Hello,
I have a routine in my application that tests to see if a given file is locked. This file belongs to another
java application written by someone else in my organization and I have no idea if they are doing anything to correctly lock the file. However, on windows, when the other application is running, I am prevented from deleting the file using windows explorer. Given that bit of logic, one would assume that my tryLock method call should not be returning me an exclusive lock, which it in fact does.
Any idea why I would be able to get an exclusive lock on a file that, from the outside, appears to already be locked by the other running application?
Note - the other application is running in a completely separate VM.
Have I provided enough information? The method for getting the lock is quite standard that you see on most every other file lock question.