Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:neo4j="http://www.springframework.org/schema/data/neo4j"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
		http://www.springframework.org/schema/data/neo4j http://www.springframework.org/schema/data/neo4j/spring-neo4j.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">

    <context:annotation-config/>

    <bean id="haDatabase" class="org.neo4j.kernel.HighlyAvailableGraphDatabase"
           destroy-method="shutdown">
       <constructor-arg index="0" value="target/config-test"/>
       <constructor-arg index="1">
           <map>
               <entry key="ha.server_id" value="1"/>
               <entry key="ha.server" value="localhost:6001"/>
               <entry key="ha.coordinators" value="localhost:2181,localhost:2182,localhost:2183"/>
           </map>
       </constructor-arg>
    </bean>

    <neo4j:config graphDatabaseService="haDatabase"/>
    <bean id="config" class="org.springframework.data.neo4j.config.DataGraphNamespaceHandlerTests$Config"/>
</beans>
New to GrepCode? Check out our FAQ X