Hi,

> I don't know
> enough about finer points of shutdown hooks to comment on the distinctio,
> but my off the cuff assumption is that a shutdown hook would be a bad idea
> ... in a long running program wouldn't thta keep the IndexWriter
> from being GCed until shutdown?
>

Could be, haven't use them either...
...If IW.close() calls RT.removeShutdownHook() I think this should work.

Doron

Reply via email to