Announcement Announcement Module
Collapse
No announcement yet.
SPRING DATA NEO4J and allow_store_upgrade=true aka neo4j.properties - how to config? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SPRING DATA NEO4J and allow_store_upgrade=true aka neo4j.properties - how to config?

    Hei.

    I was playing around with new RC1 spring-data-neo4j version 2.0.0.RC1 (to speak maven language).
    I found it interesting and nice approach so far.

    If I would like to start my embedded Neo4j with option: allow_store_upgrade=true (as documented in http://docs.neo4j.org/chunked/milest...upgrading.html), how do I do it?

    Now I have only one line in my applicationContext.xml
    <neo4j:config storeDirectory="c:\\temp\\avia2"/>
    Those, who are more familiar with spring probably knows the answer, but I spent over an hour to skim all the manuals
    Last edited by eino; Nov 16th, 2011, 03:50 AM. Reason: add question icon

  • #2
    Sorry, I have to add this to the manual.

    you would do the following:

    Code:
        <bean id="graphDatabaseService" class="org.neo4j.kernel.EmbeddedGraphDatabase"
                destroy-method="shutdown" scope="singleton">
            <constructor-arg value="target/config-test"/>
            <constructor-arg>
                <map>
                    <entry key="allow_store_upgrade" value="true"/>
                </map>
            </constructor-arg>
        </bean>
    
        <neo4j:config graphDatabaseService="graphDatabaseService"/>

    Comment

    Working...
    X