Announcement Announcement Module
Collapse
No announcement yet.
how to access Neo4j Server from Remote location Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to access Neo4j Server from Remote location

    Hi Every one,

    i am working on Neo4j and Spring MVC, i am access ne04j server from local,
    i want to access it from remote location,

    for local directory i configured in applicationcontext like below

    <neo4j:config storeDirectory="C:/neo4j-enterprise-1.6/data/crmpp_db"/>

    how to configured for remote location in applicationContext? what are the jar file require for it?

    Thanks
    SanthoshKumar.G

  • #2
    You need: spring-data-neo4j-rest as dependency.

    Setup see here: http://static.springsource.org/sprin.../html/#d0e4019

    Code:
    <neo4j:config graphDatabaseService="graphDatabaseService"/>
    
    <bean id="graphDatabaseService" class="org.springframework.data.neo4j.rest.SpringRestGraphDatabase">
        <constructor-arg value="http://localhost:7474/db/data/" index="0"/>
    <!-- for running against a server requiring authentication
        <constructor-arg value="username" index="1"/>
        <constructor-arg value="password" index="2"/>
    -->
    </bean>

    Comment


    • #3
      Hi MichaelHunger

      Can you please tell me what are the jar files i need to use for remote service.

      i am using below jar file
      spring-data-neo4j-rest-2.0.0.jar

      but i am getting class not found exception.

      Thanks
      SanthoshKumar.G

      Comment


      • #4
        Can you please use the 2.1.M1 release, and spring-data-neo4j-rest-2.1.M1.jar ?

        It has a number of dependencies which any build system like ivy, gradle, maven, sbt can resolve for you.

        Michael

        Code:
        [INFO] [dependency:tree {execution: default-cli}]
        [INFO] org.springframework.data:spring-data-neo4j-rest:jar:2.1.0.BUILD-SNAPSHOT
        [INFO] +- org.springframework.data:spring-data-neo4j:jar:2.1.0.BUILD-SNAPSHOT:compile
        [INFO] |  +- org.springframework:spring-beans:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  |  \- org.springframework:spring-core:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  |     \- org.springframework:spring-asm:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  +- org.springframework:spring-tx:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  |  +- org.springframework:spring-context:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  |  |  +- org.springframework:spring-expression:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  |  |  +- org.springframework:spring-instrument:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  |  |  \- org.springframework:spring-aop:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
        [INFO] |  +- org.springframework:spring-aspects:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  +- org.springframework:spring-orm:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  |  +- org.springframework:spring-jdbc:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  |  \- org.springframework:spring-web:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  |     \- org.springframework:spring-oxm:jar:3.2.0.BUILD-SNAPSHOT:compile
        [INFO] |  |        \- commons-lang:commons-lang:jar:2.4:compile
        [INFO] |  +- org.springframework.data:spring-data-commons-core:jar:1.2.1.RELEASE:compile
        [INFO] |  +- org.aspectj:aspectjrt:jar:1.6.12:compile
        [INFO] |  +- cglib:cglib:jar:2.2:compile
        [INFO] |  |  \- asm:asm:jar:3.1:compile
        [INFO] |  +- org.neo4j:neo4j-cypher-dsl:jar:1.6.M02:compile
        [INFO] |  +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:compile
        [INFO] |  \- javax.validation:validation-api:jar:1.0.0.GA:compile
        [INFO] +- org.neo4j:neo4j:jar:1.7-SNAPSHOT:compile
        [INFO] |  +- org.neo4j:neo4j-kernel:jar:1.7-SNAPSHOT:compile
        [INFO] |  |  \- org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
        [INFO] |  +- org.neo4j:neo4j-lucene-index:jar:1.7-SNAPSHOT:compile
        [INFO] |  |  \- org.apache.lucene:lucene-core:jar:3.5.0:compile
        [INFO] |  +- org.neo4j:neo4j-graph-algo:jar:1.7-SNAPSHOT:compile
        [INFO] |  +- org.neo4j:neo4j-udc:jar:1.7-SNAPSHOT:compile
        [INFO] |  +- org.neo4j:neo4j-graph-matching:jar:1.7-SNAPSHOT:compile
        [INFO] |  \- org.neo4j:neo4j-jmx:jar:1.7-SNAPSHOT:compile
        [INFO] +- org.neo4j:neo4j-rest-graphdb:jar:1.7-SNAPSHOT:compile
        [INFO] |  \- org.neo4j:server-api:jar:1.7-SNAPSHOT:provided (scope managed from compile)
        [INFO] |     \- javax.ws.rs:jsr311-api:jar:1.1.1:provided
        [INFO] +- org.neo4j.server.plugin:neo4j-cypher-plugin:jar:1.7-SNAPSHOT:test
        [INFO] +- org.neo4j:neo4j-shell:jar:1.7-SNAPSHOT:test
        [INFO] |  \- org.apache.servicemix.bundles:org.apache.servicemix.bundles.jline:jar:0.9.94_1:test
        [INFO] +- org.neo4j.server.plugin:neo4j-gremlin-plugin:jar:1.7-SNAPSHOT:test
        [INFO] +- org.neo4j.app:neo4j-server:jar:1.7-SNAPSHOT:test
        [INFO] |  +- org.neo4j:neo4j-cypher:jar:1.7-SNAPSHOT:test
        [INFO] |  |  \- org.scala-lang:scala-library:jar:2.9.0-1:test
        [INFO] |  +- commons-digester:commons-digester:jar:1.8.1:test
        [INFO] |  |  \- commons-beanutils:commons-beanutils:jar:1.8.0:test
        [INFO] |  +- commons-io:commons-io:jar:1.4:test
        [INFO] |  +- org.rrd4j:rrd4j:jar:2.0.7:test
        [INFO] |  \- bouncycastle:bcprov-jdk16:jar:140:test
        [INFO] +- com.tinkerpop.blueprints:blueprints-core:jar:1.2:compile
        [INFO] |  \- org.codehaus.jettison:jettison:jar:1.3:compile
        [INFO] |     \- stax:stax-api:jar:1.0.1:compile
        [INFO] +- com.tinkerpop.blueprints:blueprints-neo4j-graph:jar:1.2:compile
        [INFO] +- com.tinkerpop.gremlin:gremlin-groovy:jar:1.5:compile
        [INFO] |  +- com.tinkerpop.gremlin:gremlin-java:jar:1.5:compile
        [INFO] |  +- com.tinkerpop:pipes:jar:1.0:compile
        [INFO] |  +- org.codehaus.groovy:groovy:jar:1.8.5:compile
        [INFO] |  |  +- antlr:antlr:jar:2.7.7:compile
        [INFO] |  |  +- asm:asm-commons:jar:3.2:compile
        [INFO] |  |  +- asm:asm-util:jar:3.2:compile
        [INFO] |  |  +- asm:asm-analysis:jar:3.2:compile
        [INFO] |  |  \- asm:asm-tree:jar:3.2:compile
        [INFO] |  \- org.fusesource.jansi:jansi:jar:1.5:compile
        [INFO] +- commons-configuration:commons-configuration:jar:1.6:test
        [INFO] |  +- commons-collections:commons-collections:jar:3.2.1:test
        [INFO] |  +- commons-logging:commons-logging:jar:1.1.1:test
        [INFO] |  \- commons-beanutils:commons-beanutils-core:jar:1.8.0:test
        [INFO] +- org.mortbay.jetty:jetty:jar:6.1.25:test
        [INFO] |  +- org.mortbay.jetty:jetty-util:jar:6.1.25:test
        [INFO] |  \- org.mortbay.jetty:servlet-api:jar:2.5-20081211:test
        [INFO] +- org.codehaus.jackson:jackson-jaxrs:jar:1.6.1:compile
        [INFO] |  \- org.codehaus.jackson:jackson-core-asl:jar:1.6.1:compile
        [INFO] +- org.codehaus.jackson:jackson-mapper-asl:jar:1.6.1:compile
        [INFO] +- com.sun.jersey:jersey-client:jar:1.4:compile
        [INFO] |  \- com.sun.jersey:jersey-core:jar:1.4:compile
        [INFO] +- org.neo4j:neo4j-kernel:test-jar:tests:1.7-SNAPSHOT:test
        [INFO] +- org.slf4j:slf4j-api:jar:1.6.1:compile
        [INFO] +- org.slf4j:jcl-over-slf4j:jar:1.6.1:runtime
        [INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.1:runtime
        [INFO] +- log4j:log4j:jar:1.2.15:runtime
        [INFO] +- org.springframework.data:spring-data-neo4j-aspects:jar:2.1.0.BUILD-SNAPSHOT:test
        [INFO] +- org.springframework.data:spring-data-neo4j:test-jar:tests:2.1.0.BUILD-SNAPSHOT:test
        [INFO] +- org.springframework.data:spring-data-neo4j-aspects:test-jar:tests:2.1.0.BUILD-SNAPSHOT:test
        [INFO] +- org.hibernate:hibernate-validator:jar:4.0.2.GA:test
        [INFO] |  +- javax.xml.bind:jaxb-api:jar:2.1:test
        [INFO] |  |  +- javax.xml.stream:stax-api:jar:1.0-2:test
        [INFO] |  |  \- javax.activation:activation:jar:1.1:test
        [INFO] |  \- com.sun.xml.bind:jaxb-impl:jar:2.1.3:test
        [INFO] +- junit:junit:jar:4.8.1:test
        [INFO] +- com.sun.jersey:jersey-server:jar:1.4:test
        [INFO] \- org.springframework:spring-test:jar:3.2.0.BUILD-SNAPSHOT:test
        [INFO]    \- org.springframework:spring-webmvc-portlet:jar:3.2.0.BUILD-SNAPSHOT:test
        [INFO]       \- org.springframework:spring-webmvc:jar:3.2.0.BUILD-SNAPSHOT:test
        [INFO]          \- org.springframework:spring-context-support:jar:3.2.0.BUILD-SNAPSHOT:test

        Comment

        Working...
        X