Ross Gardler wrote: > > I have been perusing the ML archives, and google, but while I can find > > enough statements that Xindice can be embedded, I cannot actually find > > any onfo on *how* to embed Xindice. Could somebody please: > > > > * thwack me on the head and point me to TFM so I can R it > > No idea if there is a manual entry specilifacally for this but I happend > to spot embedded deep in a mail somewhere... > > Basically just access the DB with the URI "xmldb:xindice-embed://db" > > If you search the mail archives for that string you should find some > sample code plus all examples in the docs work the same way
Thank you. Will try. > > I'm looking to embed this into a servlet, so the database file(s) would > > have to live in WEB-INF I guess. > > I guess you'r right, not done it myself but as long as the xindice stuff > is in the classpath (i.e. WEB-INF/lib) can't see why it wouldn't work. The thing I'm still unsure about is that I saw a mention on the list a while ago that the database had to live in the directory Xindice was started in.... which would be where tomcat was started in case I embed Xindice. That won't work. I hope I'm wrong about this. Emile