You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by "Vladimir R. Bossicard" <vl...@bossicard.com> on 2002/11/13 10:02:50 UTC

Question about the system.xml file

I am currently fixing the problem of loading the system property file 
for the embedded version.

<xindice>
    <root-collection dbroot="/home/vbossica/projects/mydb/vbodb" 
name="thedb">
       <queryengine>
          <resolver autoindex="false" 
class="org.apache.xindice.core.query.XPathQueryResolver" />
          <resolver 
class="org.apache.xindice.core.xupdate.XUpdateQueryResolver" />
       </queryengine>
    </root-collection>
</xindice>

executing the following commands:

 > xindice ac -v -l -d config.xml -c /vbodb123 -n data1
 > Created : /vbodb123/data1

 > xindice ac -v -l -d config.xml -c /vbodb -n data2
 > Created : /vbodb/data2

and all of the following commands:

 > xindice lc -v -l -d config.xml -c /
 > xindice lc -v -l -d config.xml -c /vbodb
 > xindice lc -v -l -d config.xml -c /vbodb

give the same result:
 >    data1
 >    data2
 >    system

it seems to me that the -c value doesn't play a role for the root 
collection.

Should we remove the -c for the root collection (and forget about the 
'vbodb' altogether - it make sense since the enduser may be unaware of 
the name of the database).

Thoughts?

-Vladimir

-- 
Vladimir R. Bossicard
www.bossicard.com


Re: [PATCH] Question about the system.xml file

Posted by Kevin Ross <Ke...@iVerticalLeap.com>.
BTW:  If we want to start getting more elaborate with the system 
configuration, I'm pretty good with the commons-digester, so we can 
easily make changes...

-Kevin

Murray Altheim wrote:

> Vladimir R. Bossicard wrote:
>
>>
>>> The only thing that strikes me from looking at the patch is the
>>> hardcoded database name.
>>
>>
>> Where?  The goal of the patch is to correct that so if you're right, 
>> I missed a spot :-)
>>
>> Can you be more precise?
>
>
>
> Gah. I read the patch backward. You're correct, sorry.
>
> Murray
>
> ......................................................................
> Murray Altheim                  <http://kmi.open.ac.uk/people/murray/>
> Knowledge Media Institute
> The Open University, Milton Keynes, Bucks, MK7 6AA, UK
>
>            If you're the first person in a new territory,
>            you're likely to get shot at.
>                                                     -- ma
>



Re: [PATCH] Question about the system.xml file

Posted by Murray Altheim <m....@open.ac.uk>.
Vladimir R. Bossicard wrote:

> 
>> The only thing that strikes me from looking at the patch is the
>> hardcoded database name.
>
> Where?  The goal of the patch is to correct that so if you're right, I 
> missed a spot :-)
> 
> Can you be more precise?


Gah. I read the patch backward. You're correct, sorry.

Murray

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

            If you're the first person in a new territory,
            you're likely to get shot at.
                                                     -- ma


Re: [PATCH] Question about the system.xml file

Posted by "Vladimir R. Bossicard" <vl...@bossicard.com>.
> The only thing that strikes me from looking at the patch is the
> hardcoded database name.

Where?  The goal of the patch is to correct that so if you're right, I 
missed a spot :-)

Can you be more precise?

Thanks

-Vladimir

-- 
Vladimir R. Bossicard
www.bossicard.com


Re: [PATCH] Question about the system.xml file

Posted by Murray Altheim <m....@open.ac.uk>.
Vladimir R. Bossicard wrote:

> With the following patch, you can specify a configuration file where 
> Xindice embedded version will store the database.
> 
> Before committing the changes, I would like the opinion of other committers.
> 
> -Vladimir


The only thing that strikes me from looking at the patch is the 

hardcoded database name. At very least couldn't this be a static
String? I think there should be some way to easily change this.

Murray

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

            If you're the first person in a new territory,
            you're likely to get shot at.
                                                     -- ma


[PATCH] Question about the system.xml file

Posted by "Vladimir R. Bossicard" <vl...@bossicard.com>.
With the following patch, you can specify a configuration file where 
Xindice embedded version will store the database.

Before committing the changes, I would like the opinion of other committers.

-Vladimir

-- 
Vladimir R. Bossicard
www.bossicard.com