db4o open source object database
db4o :: .NET Product News Blog

Syndicate This

Wednesday, February 16, 2005

Running in a mixed Java/.NET/Mono environment

In principle the db4o database file format is fully compatible between Java, .NET and Mono, no matter on which operating system db4o is run.

There is only a small difference between Java and the two .NET environments:
.NET class names also contain their assembly names. Accordingly all stored classes need to be renamed when a database file is to be ported from one system to the next. This can be fully automated generically, the renaming process is very fast.

Here is a running sample with a solution how generic rename code could look like. It demonstrates writing to a database file with Java, reading with .NET and vice versa: http://www.db4o.com/downloads/db4oJavaDotnet.zip