Re: [sqlite] accessing a sqlite db with multiple java processes.

2009-05-27 Thread Laurent Burgy
my bad... but i don't know how to block the writing to the database to wait until the release of the lock... It seems to me that when the writing is impossible because there's a lock, the driver raises the exception... Maybe the good thing to do would be to wait for a regular FileLock to be

Re: [sqlite] accessing a sqlite db with multiple java processes.

2009-05-27 Thread Martin.Engelschalk
Hi, i imagine that your problem has nothing to do with your driver. Have you looked at http://www.sqlite.org/faq.html#q5 ? Martin Laurent Burgy schrieb: > Hi, > I was using sqlite with only one java process (using the sqlitejdbc driver) > and everything was ok... now i'm trying to run several

[sqlite] accessing a sqlite db with multiple java processes.

2009-05-27 Thread Laurent Burgy
Hi, I was using sqlite with only one java process (using the sqlitejdbc driver) and everything was ok... now i'm trying to run several instances of the same program on the same db...and i've a bunch of "database is locked" exceptions. i was wandering if it was possible to access the same db with