Java 在Spring中配置Neo4j 1.9.3以获得高可用性GraphDatabase(嵌入式)
到目前为止,我正在使用neo4j 1.8.2 EP edition对3个实例进行集群。我以前的spring应用程序配置如下:Java 在Spring中配置Neo4j 1.9.3以获得高可用性GraphDatabase(嵌入式),java,spring,neo4j,high-availability,spring-data-neo4j,Java,Spring,Neo4j,High Availability,Spring Data Neo4j,到目前为止,我正在使用neo4j 1.8.2 EP edition对3个实例进行集群。我以前的spring应用程序配置如下: <bean id="graphDatabaseService" class="org.neo4j.kernel.HighlyAvailableGraphDatabase" destroy-method="shutdown" scope="singleton"> <constructor-arg name="storeDir
<bean id="graphDatabaseService" class="org.neo4j.kernel.HighlyAvailableGraphDatabase"
destroy-method="shutdown" scope="singleton">
<constructor-arg name="storeDir" index="0" value="E:/Neo4J Enterprise Edition/db1/graph.db" />
<constructor-arg index="1">
<map>
<entry key="ha.server_id" value="1" />
<entry key="ha.pull_interval" value="10"></entry>
<entry key="ha.server" value="192.168.1.10:6001" />
<entry key="ha.coordinators" value="192.168.1.10:2181,192.168.1.7:2182" />
</map>
</constructor-arg>
</bean>
<neo4j:config graphDatabaseService="graphDatabaseService" />
但根据neo4j 1.9.3企业版的新变化,Zookeeper不再使用,coordinator也不再起作用。如何将其重新配置为与neo4j 1.9.3 enterprise edition一起使用?任何链接/资源都将不胜感激。。谢谢。为了克服困难,我做了两个改变:
使用配置: