Home > Uncategorized > configuring a Neo4j GraphDatabaseService via Spring

configuring a Neo4j GraphDatabaseService via Spring

Starting with Neo4j 1.9 the constructors for EmbeddedGraphDatabase and HighlyAvailableGraphDatabase were deprecated. The recommended way to instantiate those from Java is by using factory classes as documented in the reference manual. In the case of HighlyAvailableGraphDatabase use a different factory class HighlyAvailableGraphDatabaseFactory.

If you’re using Spring for wiring components or Spring Data Neo4j then it’s up to the container to build up the GraphDatabaseService for you. Doing this with factories is a little bit more tricky but I’ve create two gists.

Creating a EmbeddedGraphDatabase

Creating a HighlyAvailableGraphDatabase

Categories: Uncategorized Tags:
  1. Aman
    September 4th, 2013 at 09:49 | #1

    HighlyAvailableGraphDatabase configuration is not working for Neo4j 1.9.3 ? Any guess what more changes it need to implement ?

  2. September 4th, 2013 at 10:13 | #2

    What error do you get?

  1. No trackbacks yet.