2012/3/30 Christian GrĂ¼n <christian.gruen@gmail.com>
Hi,
yes, I think we should rather go for the lock approach. Still, I'd
> My first idea would be to try and lock the main table of the database,
> `tbl.basex`, via FileChannel.tryLock(). That should be just as effective in
> preventing concurrent access, with the added benefit of leaving no orphaned
> files behind when the BaseX instance isn't terminated gracefully.
prefer to create a separate file for each process accessing the
database; otherwise, we won't know when to unlock the existing files.