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]> 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].
> 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.

Reply via email to