Neil Cook wrote:
Murray,

That is a great description for any upgraders. It seems suitable for the
Wiki or a page on the Xindice website.

Please do. It was meant to be reused in whatever way is suitable.

In your description, below, on the lines which start
"database.setProperty(", should there really be three such calls? Does the
second call override the first one?

oops. Yes, the db-home property is meant to point to the Xindice home directory ("./xindice"), not the location of the database files ("./db"). Sorry for any confusion. My notes ended up with one of my experiments remaining...

The place to set the name and location of the database files is in
the config/system.xml file,

    <root-collection dbroot="./db/" name="db" use-metadata="on">

/Neil

-----Original Message-----
From: Murray Altheim [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 8:47 PM
To: [EMAIL PROTECTED]
Subject: Notes on Xindice 1.0 to 1.1 Upgrade for Embedded Use

5. Given the definitions in #4 above, the guts of the code to open an
    embedded database, set up a CollectionManagementService and
    DatabaseInstanceManager (whose only purpose is to shut down the
    database, something I probably won't do anymore now that I'm using
    embedded) is as follows:


should be:

        database = (Database)Class.forName(m_driver).newInstance();

        database.setProperty("db-home","./xindice");
        database.setProperty("managed","true");



Murray

......................................................................
Murray Altheim                    http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK               .

  More than 60 influential scientists, including 20 Nobel laureates,
  issued a statement yesterday asserting that the Bush administration
  had systematically distorted scientific fact in the service of
  policy goals on the environment, health, biomedical research and
  nuclear weaponry at home and abroad. -- James Glanz, New York Times
  http://www.nytimes.com/2004/02/19/politics/19RESE.html



Reply via email to