2008/12/15 Emil Eifrem <e...@neotechnology.com>: > On Mon, Dec 15, 2008 at 2:28 PM, Mwanji Ezana <mwa...@gmail.com> wrote: >> Hi Mattias and Johan, >> >> Thanks for the tips. Actually, I didn't know about >> Runtime.addShutdownHook(), which is why I was having trouble and was >> shutting down on every transaction. >> >> I don't think that this is mentioned on the wiki anywhere. It would be nice >> to do so, since using addShutdownHook() might not be intuitive for a lot of >> people. You're right, we aren't as good as can be on that point. I guess we'll deal with those missing details soon. > > There's also this idea: > > <quote who="myself" from="a week or so ago on the mailing list"> > Idea: What if EmbeddedNeo's constructor registered a shutdown hook > with the JVM to shutdown (if not already done) when the JVM exits? > There's obvious goodness with that, but any bad consequences that I'm > missing? > </quote> It's a bad idea if you f.ex. have an IndexService which should be shutdown before the NeoService... but that's an issue we'll solve with events later on right? > > I think I'm hesitating on this because it's clearly a hack around not > having proper life cycle support in Java. But unless someone can tell > me why that would be a bad idea, I'll add it to the trunk? > > Cheers, > > -- > Emil Eifrém, CEO [e...@neotechnology.com] > Neo Technology, www.neotechnology.com > Cell: +46 733 462 271 | US: 206 403 8808 > _______________________________________________ > Neo mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user >
-- Mattias Persson, [matt...@neotechnology.com] Neo Technology, www.neotechnology.com _______________________________________________ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user