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

33 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
  15. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your blog.
    iPhone training courses in bangalore
    iPhone training courses in bangalore

    ReplyDelete
  16. Very nice post to keep sharing... Thanks for giving very nice information from your post… Java Training in Chennai | RPA Training in Chennai

    ReplyDelete
  17. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    Data Science Training in Chennai
    Data science training in bangalore
    Data science online training
    Data science training in pune

    ReplyDelete
  18. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    Devops training in Chennai
    Devops training in Bangalore
    Devops Online training
    Devops training in Pune

    ReplyDelete
  19. I and my friends were going through the nice, helpful tips from the blog then the sudden came up with an awful suspicion I never expressed respect to the website owner for those secrets.

    ccna training in chennai



    ccna training in bangalore


    ccna training in pune

    ReplyDelete
  20. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    java training in chennai | java training in bangalore

    java training in tambaram | java training in velachery

    java training in omr | oracle training in chennai

    ReplyDelete
  21. Amazing blog about the various informative information on the programming languages... Java Training in Chennai | Blue prism Training in Chennai

    ReplyDelete

  22. Nice blog..! I really loved reading through this article. Thanks for sharing such a amazing post with us and keep blogging...


    Best Data Science online training in Hyderabad

    Data Science training in Hyderabad

    Data Science online training in Hyderabad

    ReplyDelete
  23. At this time, it seems like Word Press is the preferred blogging platform available right now. (from what I’ve read) Is that what you’re using on your blog? Great post, however, I was wondering if you could write a little more on this subject?
    Best AWS Training in Marathahalli | AWS Training in Marathahalli
    Amazon Web Services Training in Anna Nagar, Chennai |Best AWS Training in Anna Nagar, Chennai

    ReplyDelete
  24. I read this post two times, I like it so much, please try to keep posting & Let me introduce other material that may be good for our community.
    python training in velachery
    python training institute in chennai

    ReplyDelete
  25. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information. 
    DevOps online Training
    Best Devops Training institute in Chennai

    ReplyDelete
  26. A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. I am learning a lot from you.

    rpa training in electronic-city | rpa training in btm | rpa training in marathahalli | rpa training in pune

    ReplyDelete