Re: How do I unlock?

2005-01-11 Thread Chris Lamprecht
What about a shutdown hook? Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { /* whatever */ } }); see also http://www.onjava.com/pub/a/onjava/2003/03/26/shutdownhook.html On Tue, 11 Jan 2005 13:21:42 -0800, Doug Cutting [EMAIL PROTECTED] wrote: Joseph Ottinger

Re: How do I unlock?

2005-01-11 Thread Otis Gospodnetic
I didn't pay full attention to this thread, but it sounds like somebody may be interested in RuntimeShutdownHook (or some similar name) as a place to try to release the locks. Otis --- Joseph Ottinger [EMAIL PROTECTED] wrote: On Tue, 11 Jan 2005, Doug Cutting wrote: Joseph Ottinger wrote:

Re: How do I unlock?

2005-01-11 Thread Otis Gospodnetic
Eh, that exactly :) When I read my emails in reverse order --- Chris Lamprecht [EMAIL PROTECTED] wrote: What about a shutdown hook? Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { /* whatever */ } }); see also

Re: How do I unlock?

2005-01-11 Thread Chris Hostetter
: What about a shutdown hook? Interesting idea, at the moment the file is created on disk, the FSDirectory could add a shutdown hook that checked for the existence of the file and if it's still there (implying that the Lock owner failed without releasing the lock) it can forcably remove it. Of