alexanoid
alexanoid

Reputation: 25862

Neo4j Enterprise embedded database

I'm going to try Neo4j Enterprise embedded database. Right now I can't find any tutorials that explain how to configure and use Neo4j Enterprise embedded database togher with Maven and Spring.

In order to use embedded Neo4j Enterprise should I download Neo4j zip archive and start it or Maven dependency should be enough ? I don't understand collaboration between Java configuration and for example downloaded distributions.

Could you please tell me the proper way how to use Neo4j Enterprise embedded database together with my application ?

Upvotes: 1

Views: 239

Answers (2)

John Mark
John Mark

Reputation: 363

If you really need to embed Neo4j into an application, you most likely just need the core and kernel apis which is under the org.neo4j:neo4j dependency not the enterprise dependencies (org.neo4j:neo4j-enterprise).

Your maven config would have the following dependency:

<dependency>
  <groupId>org.neo4j</groupId>
  <artifactId>neo4j</artifactId>
  <version>NEO4J VERSION HERE</version>
</dependency>

Your question makes me think that you may really want to just run Neo4j as a server and connect to it via REST or any of it's BOLT drivers. You don't download and start the embedded version - you do that with the server. Can you clarify exactly what you want to do?

Upvotes: 2

Michael Hunger
Michael Hunger

Reputation: 41706

Just add a neo4j dependency on org.neo4j:neo4j-enterprise:<version>

If you don't need HA that's all you need.

Upvotes: 1

Related Questions