Pagine

Saturday, 5 March 2016

Neo4j: how to use neo4j jdbc driver in Java

Here's a tutorial on how to connect to Neo4j graph database using org.neo4j.jdbc.Driver and Java.

What we do in the following code is to:

  1. Set user and password strings
  2. Check for the driver in referenced libraries
  3. Establish the connection



Note that user and password strings are here hardcoded, as server port and address.
A better way to set them is using a property file as showed in our tutorial

18 comments:

  1. Day by day I am getting new things and learn new concept through your blogs, I feel very confident, thanks for your informative blog keep your post as updated one...
    Regards,
    JAVA Course in Chennai|Best JAVA Training in Chennai

    ReplyDelete
  2. I have read your blog its very attractive and impressive. I like it your blog.

    Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

    Java Online Training Java Online Training Core Java 8 Training in Chennai Core java 8 online training JavaEE Training in Chennai Java EE Training in Chennai

    ReplyDelete
  3. The expansion of internet and intelligence in business process lead the way to huge volume of data. It is important to maintain and process these data to be efficient in data handling. Hadoop Training in Chennai | Big Data Training in Chennai

    ReplyDelete
  4. Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog. Java Training in Chennai

    ReplyDelete
  5. really you have posted an informative blog. it will be really helpful to the peoples who are all working under the technology. thank you for sharing such kind of an interesting article.
    java training in chennai

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Great post! I am actually getting ready to across this information, It's very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
    Java Training in Chennai

    ReplyDelete
  8. Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts, have a nice weekend!


    Java Training in Chennai


    Java Training in Bangalore


    Java Training in Bangalore

    ReplyDelete
  9. There are so many useful information in your post, I like it all the time. And I want to share this boost app ranking with you, you can take a look. This is very useful.

    ReplyDelete
  10. Thanks for sharing this good blog.This is very important and imformative blog for Java .It's very interesting and useful for students
    Java Online Training Hyderabad

    ReplyDelete
  11. Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog...Java Training in Chennai
    Java Training Institute in Chennai

    ReplyDelete
  12. Really it was an awesome article...very interesting to read..You have provided an nice article....Thanks for sharing..
    Read more about Java training in delhi, java programming in delhi

    ReplyDelete
  13. Thanks for sharing this good blog.It's amazing blog Core Java Online Training Hyderabad

    ReplyDelete
  14. This concept is a good way to enhance the knowledge.thanks for sharing. please keep it up Java online training Bangalore

    ReplyDelete