Search code examples
db4o

Why can't I use the same db4o file from multiple connections?


I'm just connecting to a db4o database file from 2 different connections with the LockDatabaseFile=false configuration value.

When I store an object from an IObjectContainer, I'm unable to get that object from the other IObjectContainer at the same time. I commit the transaction after Store but still I'm unable to get that object immediately from the other active IObjectContainer.

What is the problem?


Solution

  • db4o is not designed to allow opening a database file in write mode multiple times. With what you are doing you will corrupt the database file. Please use Client/Server mode instead.