Oh, this is excellent! I am very excited. I've been looking for something like this for almost a decade. Finally! An easy to use, pure Java, embeddable, fast XML DB.
I expand the WARs, so this will probably work just fine.
Thank you very much for your rapid and helpful replies.
Chas.
On 07/08/2010 5:30 PM, Christian GrĂ¼n wrote:
You can change the "dbpath" property, and other properties, after having created a database Context instance. This way, the properties of the global .basex file will be overwritten. You might need to find a custom way, however, to reference files within a WAR file. Here's the corresponding Java example:
Contect ctx = new Context(); new Set("dbpath", "/path/to/db").execute(ctx); new Open("...").execute(ctx); ... ctx.close();