[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

can be used to turn the database file locking thread off.

Namespace: Db4objects.Db4o.Config
Assembly:   Db4objects.Db4o (in Db4objects.Db4o.dll)

Syntax

Visual Basic (Declaration)
Sub LockDatabaseFile ( _
	flag As Boolean _
)
C#
void LockDatabaseFile (
	bool flag
)
Visual C++
void LockDatabaseFile (
	bool flag
)

Parameters

flag
System.Boolean
 Copy imageCopy Code
false
to turn database file locking off.

Remarks

can be used to turn the database file locking thread off.

Since Java does not support file locking up to JDK 1.4, db4o uses an additional thread per open database file to prohibit concurrent access to the same database file by different db4o sessions in different VMs.

To improve performance and to lower ressource consumption, this method provides the possibility to prevent the locking thread from being started.

Caution!
If database file locking is turned off, concurrent write access to the same database file from different JVM sessions will corrupt the database file immediately.

This method has no effect on open ObjectContainers. It will only affect how ObjectContainers are opened.

The default setting is
 Copy imageCopy Code
true
.