[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