Chas,
Please don't interpret my comments as complaints of any sort!
No way! Thanks for your valuable feedback, it's always welcome.
Are the JavaDocs posted somewhere or do I need to generate them?
You need to generate them by yourself. As most of our developers are using Eclipse. I'll update the online dox at
http://www.inf.uni-konstanz.de/dbis/basex/javadoc/
as soon as the new release is available.
This is user-centric. What I need is application-centric. I want to be able to run multiple websites, each in its own WAR, with the BaseX db contained in that WAR (under WEB-INF/db). This way they are easily portable, and they are far more secure. No website knows about any other website's database, and I can use the same configuration on my development machine, the staging server, and the production server.
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();
The following link gives you a list of most database options:
http://www.inf.uni-konstanz.de/dbis/basex/commands#set
Feel free to ask for more, Christian