Hi Vadim,

thanxs for your help. I tried the first suggestion and it works fine.

Unfortunately the (java)docs do net help perfekt in the current state,
but I know this is absolutely normal and OK during a beta state.

So, thankx again.

Bye
Thorsten

-----Original Message-----
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED] 
Sent: Montag, 15. Dezember 2003 12:54
To: xindice-users@xml.apache.org
Subject: Re: Two databases within one tomcat

[EMAIL PROTECTED] wrote:

>        <context path=\\\\\\\"/xindice2\\\\\\\" 
> docBase=\\\\\\\"xindice-1.1b2_2\\\\\\\" ...>
>        system.xml:
>        <root-collection dbroot=\\\\\\\"./db/\\\\\\\" name=\\\\\\\"db2\\\\\\\" 
> use-metadata=\\\\\\\"on\\\\\\\"> 3. I have started Tomcat and both databases 
> work properly (tomcat output)
>  
>
..

>Now my question. How can I access and how must the url look like in order to 
>access the xindic2 database db2.
>  
>

There are three ways to do it:

1) Set property \"service-location\":
// Note - package name must not be \"xmlrpc\":
d = new o.a.x.client.xmldb.DatabaseImpl();
d.setProperty(\"service-location\", \"/xindice2\");
d.getCollection(...);

2) Set system property \"xindice.xmlrpc.service-location\"
System.setProperty(\"xindice.xmlrpc.service-location\", \"/xindice2\");
d = new o.a.x.client.xmldb.xmlrpc.DatabaseImpl();
d.getCollection(...);

3) Best one: patch XindiceServlet to allow multiple databases.


Vadim

Reply via email to