Brian McCallister wrote:
On Feb 15, 2004, at 10:34 PM, Vadim Gritsenko wrote:
I don't know what docs are you referring to - but Cocoon works with the Xindice out of the box. Download Cocoon, run "build", run "cocoon servlet", go to http://localhost:8888/samples/xmldb/
Ah, but I am not using it with Cocoon ;-) Digging into how cocoon does it is my next step, but finding docs is easier than tracing cocoon configs down.
XML:DB docs should be enough to get started with XML:DB drivers (disclaimer: I have not read those, that's why "should"); bin\xindice.bat in Xindice CVS is enough to understand about system properties (like config location, db location), and DatabaseImpl javadoc [1] explains the rest.
Will happily do -- once I get it all working will definitely write up how I did it and put it on wiki, or as howto for cvs'd docs -- whatever is most convenient.
There is new wiki at wiki.apache.org/xindice - new articles are welcome.
Basically I want to embed it in a non-servlet app; not expose any of the remote access, etc; and ideally enable it to auto-create its repository (though this is probably okay to not do). Setting environment variables on the command line is really not ideal, but again, can be done if need be.
Starting with 1.1b4-dev, it does not need to be system properties, it can be driver parameters (see javadoc). See also how XMLTools use embed mode (switches -l, -d)
Vadim