Hey,

You can have multiple threads talking to the same DB reference. You can not 
create multiple graph database services over the same directory. Thus,

final graph = new GraphDatabaseService('/tmp/test')
for(int i=0;i<10;i++) {
new Thread {
        public void run() {
           // do something to graph
        }
  }.start()
}

But not:

graph = new GraphDatabaseSerice('/tmp/test');
graph = new GraphDatabaseService('/tmp/test');

Hope that helps,
Marko.

http://markorodriguez.com

On May 9, 2011, at 3:06 PM, John Doran wrote:

> Hi Jim,
> Thanks for the reply, I haven't delved into the server aspect of neo4j(I'll
> leave that until I finish up college). I'll have to refresh my threading
> knowledge, you reckon each time users want to interact with the db to create
> a thread and this would stop any exceptions relating to not being able to
> connect to the database(because it's in use).
> Regards,
> John.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to