Peter Thanks for your answer. Do we have any way to unlock of one process and change the mode to lock another process? Maybe, you understand that I use both embedded java and server process in the same time for one application. But my case is:
I use embedded java for application and after that I close this application written in eclipse. And now I want to use http://localhost:7474/ by browser (interface not by application using Rest way)to test some cipher query. But it is not possible. I don't know why when i turn off the application in the embedded mode, it still affects to db? On Tuesday, June 10, 2014 9:50:01 AM UTC+2, Peter Neubauer wrote: > > Alex, > you can only lock the physical DB directory to one of your two processes > (Embedded Java, Neo4j Server) at a time. Eitehr start the server and access > the DB via REST against the server and the Cypher endpoint, see > http://docs.neo4j.org/chunked/stable/server-java-rest-client-example.html#_sending_cypher, > > or use Neo4j HA, and let Neo4j handle the forming of a distributed > DB-cluster. This lets you use the DB APIs as you like (embedded, server) > and Neo4j is handling distribution in the background. See > http://docs.neo4j.org/chunked/stable/ha-configuration.html for setup. > > /peter > > > G: neubauer.peter > S: peter.neubauer > P: +46 704 106975 > L: http://www.linkedin.com/in/neubauer > T: @peterneubauer <http://twitter.com/peterneubauer> > > Open Data - @mapillary <http://mapillary.com> > Open Source - @neo4j <http://neo4j.org> > Open Future - @coderdojo <http://malmo.coderdojo.se> > > > On Mon, Jun 9, 2014 at 8:21 PM, Alex winter <[email protected] > <javascript:>> wrote: > >> When I use neo4j community installer and start a new graph database. I >> can use browser and access the address http://localhost:7474/ and run >> query. >> >> When I use neo4j embedded in application and use the statement: >> >> graphDb = new GraphDatabaseFactory().newEmbeddedDatabase( DB_PATH ); >> >> >> to make a new graph database. I also can use java api to run some query in >> application. >> >> But the problem is, now I can't access http://localhost:7474/ any more. I >> got the error: >> >> >> Starting Neo4j Server failed: Error starting >> org.neo4j.kernel.EmbeddedGraphDatabase, >> >> Do you know why? how we can fix it?. Thanks >> >> >> -- >> 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] <javascript:>. >> 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.
