Vadim Gritsenko wrote:
Murray Altheim wrote:
Neil Cook wrote:
Murray,
That is a great description for any upgraders. It seems suitable for the
Wiki or a page on the Xindice website.
Please do. It was meant to be reused in whatever way is suitable.
Wikified:
http://wiki.apache.org/xindice/UpgradeTo11EmbedNotes
Wow. Pretty cool. Thanks!
Feel free to tweak if necessary :-)
BTW, you still might want to shutdown database -- with today's changes,
it will close all file descriptors properly.
Vadim,
I was literally just going to ask that question: what is the best
way to shut things down? I note there's a number of shutdown()
methods available.
You wrote earlier today:
[...]
> Ok, I've added IndexManager.close(), CollectionManager.close(), and
> implemented Collection.close().
>
> Now you can shutdown database using CollectionImpl.shutdown(), this will
> call Collection.close() on root collection, which should close
> everything. One downside... Need to integrate this with XMLTools.
Sorry to be a bit dense about this. So just to be sure, since we've
got my code example on the Wiki page, to shutdown would I call
rootCollection.shutdown();
and that'd be it? It would also shut down the DatabaseInstanceManager
and CollectionManagementService? Or would these still need to be
shutdown separately? In my 1.0 code I had to shut them down separately
when I shut down the kernel.
I think you've answered this but just want to be sure (since the
consequences of not shutting down correctly can be pretty severe).
Thanks,
Murray
......................................................................
Murray Altheim http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK .
More than 60 influential scientists, including 20 Nobel laureates,
issued a statement yesterday asserting that the Bush administration
had systematically distorted scientific fact in the service of
policy goals on the environment, health, biomedical research and
nuclear weaponry at home and abroad. -- James Glanz, New York Times
http://www.nytimes.com/2004/02/19/politics/19RESE.html