db-derby-dev mailing list archives

Re: [jira] Updated: (DERBY-700) Derby does not prevent dual boot of database from different classloaders on Linux

Date

Thu, 03 Aug 2006 16:57:17 GMT

Mike Matrigali wrote:
> great, sounds like the sync part is a non-issue. I was stuck trying
> to come up with something specific to the db shared across both
> classloaders that we could sync on. Using this will single thread
> opens of different dbs, but I think that is ok.
Then I think you would want something like:
String syncDB = file.getCanonicalPath().intern();
synchronized (syncDB)
{
}
Dan.