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
|
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|