You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Timo Nentwig <ti...@t-online.de> on 2002/09/29 12:20:00 UTC

Changing root-collection directory

Hello!

How can I set an absolute path where Xindice ought to store its data?

This results in several exception being thrown:

<root-collection dbroot="d:/databases/xindice/" name="db" security="false">

thx
tcn
--
http://timo-nentwig.de/

"If only I had known, I should have become a watchmaker." - Albert Einstein
(1879-1955)


Re: Changing root-collection directory

Posted by Murray Altheim <m....@open.ac.uk>.
Terry Rosenbaum wrote:

> Carsten Ziegert wrote:
> 
>  > ... $XINDICE_HOME directory.
>  > Using a different disk partition under windows seems not to be possible.
> 
> You are correct about Xindice requiring
> its "places" to be relative to $XINDICE_HOME
> under Xindice 1.0.


I'm using Xindice 1.0 and start my Xindice server from my build.xml
script in an /opt partition. I then open my Java application from
that same build.xml script using a different target. That application
has a line:

   System.setProperty("xindice.home",XINDICE_HOME);

that sets the home directory for my client to the directory
containing my application (on /home/altheim/work/ceryle, a different
partition). My application's database files are stored relative
to its directory. My application does include the Xindice client in
a jar file as part of its path and distribution.

I realize Windows has different issues than unix/linux, but perhaps
this same approach might work for you. IOW, I have the Xindice
server running with its own $XINDICE_HOME, then my application sets
its own for the client side of things.


> If you use the newer embedded version from CVS,
> Xindice does not require all of the content files,
> ior file, log dir, etc. used by Xindice 1.0 and thus
> you can install Xindice in one place, set XINDICE_HOME
> to wherever you like (e.g. some directory not the same
> as where you installed Xindice), and have it run just fine. The
> only thing that Xindice embedded uses the XINDICE_HOME
> for is the "db" directory.


Which (unless I'm somehow mistaken) can be set separately
for server and client, thus allowing the /db directory to
be somewhere else.

Hope this helps,

Murray

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

      Stop the Bush-Cheney Reign of Terror:  no war in Iraq!
      2800 people dead in New York? 1 million in Iraq, about
      half a million of them children. Sanctions against Iraq
      include vaccines and even chlorine -- end the sanctions!
      http://www.globalissues.org/Geopolitics/MiddleEast/Iraq.asp


Re: Changing root-collection directory

Posted by Terry Rosenbaum <Te...@amicas.com>.
Carsten Ziegert wrote:

 > ... $XINDICE_HOME directory.
 > Using a different disk partition under windows seems not to be possible.

You are correct about Xindice requiring
its "places" to be relative to $XINDICE_HOME
under Xindice 1.0.

If you use the newer embedded version from CVS,
Xindice does not require all of the content files,
ior file, log dir, etc. used by Xindice 1.0 and thus
you can install Xindice in one place, set XINDICE_HOME
to wherever you like (e.g. some directory not the same
as where you installed Xindice), and have it run just fine. The
only thing that Xindice embedded uses the XINDICE_HOME
for is the "db" directory.

Since I haven't used the XMLRPC version of Xindice, I can't comment
on how that version uses $XINDICE_HOME.

-Terry

Carsten Ziegert wrote:

> My system.xml says:
> <root-collection dbroot="./db/" name="db" security="false">
>
> As it is stored in $XINDICE_HOME/config and as the pathname for db 
> starts with a period
> I suppose that it is *always* relative to the $XINDICE_HOME directory.
> Using a different disk partition under windows seems not to be possible.
>
> Carsten
>
>
> Am Sonntag, 29.09.02, um 12:20 Uhr (Europe/Berlin) schrieb Timo Nentwig:
>
>> Hello!
>>
>> How can I set an absolute path where Xindice ought to store its data?
>>
>> This results in several exception being thrown:
>>
>> <root-collection dbroot="d:/databases/xindice/" name="db" 
>> security="false">
>>
>> thx
>> tcn
>> -- 
>> http://timo-nentwig.de/
>>
>> "If only I had known, I should have become a watchmaker." - Albert 
>> Einstein
>> (1879-1955)
>>
>>
>>



Re: Changing root-collection directory

Posted by Carsten Ziegert <Ca...@ik.fh-hannover.de>.
My system.xml says:
<root-collection dbroot="./db/" name="db" security="false">

As it is stored in $XINDICE_HOME/config and as the pathname for db 
starts with a period
I suppose that it is *always* relative to the $XINDICE_HOME directory.
Using a different disk partition under windows seems not to be possible.

Carsten


Am Sonntag, 29.09.02, um 12:20 Uhr (Europe/Berlin) schrieb Timo Nentwig:

> Hello!
>
> How can I set an absolute path where Xindice ought to store its data?
>
> This results in several exception being thrown:
>
> <root-collection dbroot="d:/databases/xindice/" name="db" 
> security="false">
>
> thx
> tcn
> --
> http://timo-nentwig.de/
>
> "If only I had known, I should have become a watchmaker." - Albert 
> Einstein
> (1879-1955)
>
>
>
-- 
Hannover Medical School 			University of Applied Sciences
Dept. of Hematology and Oncology		Faculty of Information Sciences
Carl-Neuberg-Straße 1				Ricklinger Stadtweg 120
30625 Hannover					30459 Hannover
				http://summit-bmt.fh-hannover.de