Differences between revisions 3 and 4
Revision 3 as of 2004-03-28 17:24:19
Size: 912
Comment:
Revision 4 as of 2009-09-20 23:23:39
Size: 912
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

For people who are having problems with the code found in the DevX article on Xindice when they use Xindice 1.1 instead of 1.0, the following should be useful.

Instead of using the following to embedded a database instance...

c = Class.forName("org.apache.xindice.client.xmldb.DatabaseImpl");
database = (Database) c.newInstance();
DatabaseManager.registerDatabase(database);

Use the following...

Class c = Class.forName("org.apache.xindice.client.xmldb.embed.DatabaseImpl");
database = (Database) c.newInstance();
DatabaseManager.registerDatabase(database);

Instead of using the following to collection management...

CollectionManager service = (CollectionManager) col.getService("CollectionManager", "1.0");

Use the following...

CollectionManagementService service = (CollectionManagementService) col.getService("CollectionManagementService", "1.0");

ArticleUpgrade (last edited 2009-09-20 23:23:39 by localhost)