user1826116
user1826116

Reputation: 415

Concurrent access to Neo4j from desktop apps

I am planning to create a desktop app (Java or C# WPF) which would be used by multiple users. The requirements are such that a Graph DB like Neo4j fits perfectly into the scheme of things. I have done some investigations and it looks really good. I am working on the community edition. Now here is the problem. From what I have observed, I am able to make only one connection to the database. The moment I try to make a connection from another instance I get an error. Even accessing on localhost:7474 gives an error.

Is this by design? I understand that in a web App, I can still use a static reference to a single DB instance and work with it. But in a desktop app scenario how do I ensure that multiple users are able to access the database from their apps?

Upvotes: 1

Views: 295

Answers (1)

cybersam
cybersam

Reputation: 67009

Your app instances can access the same neo4j server through its REST API. There is no need to directly connect to the DB.

Here is a page that shows you how to do that in Java.

Upvotes: 1

Related Questions