db4o |

# Configuration.readOnly Method

turns readOnly mode on and off.

void readOnly(
bool flag
);

#### Parameters

flag

      true

  for configuring readOnly mode for subsequent calls to openFile .

#### Remarks

turns readOnly mode on and off.
This method configures the mode in which subsequent calls to openFile will open files.
Readonly mode allows to open an unlimited number of reading processes on one database file. It is also convenient for deploying db4o database files on CD-ROM.
If mixed access using many readOnly and one readWrite session is used, there is no guarantee that the data in the readOnly sessions will be kept up-to-date.

#### See Also

Configuration Interface | com.db4o.config Namespace