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 spring <sp...@hotmail.com> on 2005/11/29 15:01:48 UTC
a question of collection's visiable
hello,i have a problem when i create 3 collections at one time .the code is follow:
String driver = "org.apache.xindice.client.xmldb.DatabaseImpl";
Class c = Class.forName(driver);
Database database = (Database) c.newInstance();
DatabaseManager.registerDatabase(database);
Collection col=DatabaseManager.getCollection(XMLDataAccess.getXindiceURL());
Collection congif=XMLDataAccess.createCollection(col,"ServiceAgentConfig");
Collection manager=XMLDataAccess.createCollection(congif,"ServiceManage");
Collection sa=XMLDataAccess.createCollection(congif,"ServiceAgent");
Collection commands=XMLDataAccess.createCollection(congif,"Commands");
manager.close();
sa.close();
commands.close();
congif.close();
col.close();
the problem is:after executing the code above,it seen successful,and new collections can be seen in browse,but when the xindice server is restart,these new collections are invisiable.i have read the example of how to user xindice,and i can't find where the problem is. i use tomcat 5.0,jdk 1.4.2,windows 2000
Re: a question of collection's visiable
Posted by spring <sp...@hotmail.com>.
thank you very much,Vadim :)
the problem have been solved.
----- Original Message -----
From: "Vadim Gritsenko" <va...@reverycodes.com>
To: <xi...@xml.apache.org>
Sent: Wednesday, November 30, 2005 1:29 AM
Subject: Re: a question of collection's visiable
> spring wrote:
> > the problem is:after executing the code above,it seen successful,and
> > new collections can be seen in browse,but when the xindice server is
> > restart,these new collections are invisiable.i have read the example of
> > how to user xindice,and i can't find where the problem is. i use tomcat
> > 5.0,jdk 1.4.2,windows 2000
>
> This is known issue in 1.1b4, and it is fixed in the SVN trunk. Get it here:
>
> http://svn.apache.org/repos/asf/xml/xindice/trunk/
>
>
> Vadim
>
Re: a question of collection's visiable
Posted by Vadim Gritsenko <va...@reverycodes.com>.
spring wrote:
> the problem is:after executing the code above,it seen successful,and
> new collections can be seen in browse,but when the xindice server is
> restart,these new collections are invisiable.i have read the example of
> how to user xindice,and i can't find where the problem is. i use tomcat
> 5.0,jdk 1.4.2,windows 2000
This is known issue in 1.1b4, and it is fixed in the SVN trunk. Get it here:
http://svn.apache.org/repos/asf/xml/xindice/trunk/
Vadim