I've just uploaded code snippet by Jim Morris that shows us how to use db4o with Mozilla Rhino Script Engine.
Mozilla Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users. Among its features Rhino supports:
Thanks Jim!