Where do you get that exception?
On Sat, Nov 22, 2014 at 5:39 PM, Markus Gutmann <[email protected]> wrote: > _gdbFactory = new GraphDatabaseFactory(); > _gdbService = _gdbFactory.newEmbeddedDatabase(_gdbPath); > _gdbEngine = new ExecutionEngine(_gdbService); > do some work > disconnect from the gdbdo some workdisconnect from the gdb > > I am using a local Neo4j server instance and the Neo4j Java API to access > a graph-database (gdb). > > I simply want to achieve the following workflow: > > 1. connect to the local gdb from a Java program > > I do this using: > > _gdbFactory = new GraphDatabaseFactory(); > _gdbService = _gdbFactory.newEmbeddedDatabase(_gdbPath); > _gdbEngine = new ExecutionEngine(_gdbService); > > 2. then disconnect using. > > _gdbService.shutdown(); > > 3. connect with another process to the same gdb > > e.g. with the locally installed Neo4j program. > > 4. disconnect from the gdb from this process > > e.g. by simply clicking the "stop" button at the Neo4j program. > > 5. again connect to the gdb with the Java program using again the same > code as in 1. > > *Right now, point 5 is not working!* > > The use of > > GraphDatabaseService.shutdown().shutdown > > seems to finalize the gdb in some way that I cannot connect to it any more. > > After reconnecting I get an Exception which tells me: *"This database is > shutdown!"* > > So, my question is: > > What is the common way to connect - disconnect - reconnect to a Neo4J gdb > ? Is there an alternative to the shutdown-method from above? > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
