Philipp, I agree the program is very important and Xindice will rock...but I need to understand more about it and therefore back to the woodshed.
Let's keep in touch through the list and make this happen. Brian ----- Original Message ----- From: "Philipp Chudinov" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, January 28, 2002 6:04 PM Subject: Re: how can I list collections? > Hi Brian, > I decided not to fight with addressbook example. What I am think of to fight > is collection pool. Iam gettin nervous when I think about it (I've asked > about collection pool not long ago, but got no answer...). Anyway, I will... > I will show you the result :) Xindice will rock soon, I believe. I left > "xmldb:xindice". It works with it (also) :) > > ----- Original Message ----- > From: "Brian Blakeley" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Tuesday, January 29, 2002 3:53 AM > Subject: Re: how can I list collections? > > > > Hi Philipp, > > > > I am struggling to get the Addressbook example to operate correctly > myself. > > > > The connection should be xmldb::xindice///db/addressbook as an example. > But > > as you point out the example src for this one still creates xmldb::dbxml > so > > I changed the code in the DBConnection.java to replace dbxml with xindice > > and recompiled the Addressbook.war file. > > > > Now it is giving me an error about the index being corrupt - but it is > > connecting to the database. > > > > Progress I suppose.... > > > > Brian > > > > > > ----- Original Message ----- > > From: "Philipp Chudinov" <[EMAIL PROTECTED]> > > To: <[email protected]> > > Sent: Friday, January 25, 2002 4:54 AM > > Subject: Re: how can I list collections? > > > > > > > Thank you, Stephane! now it compiles with no error. > > > > > > P.S. I've checked out xindice cvs now and found that in examples all > > > connections are retrieving with col = > > > DatabaseManager.getCollection("xmldb:dbxml:///db/"); > > > > > > so where did I get this string (xmldb:xindice:///db/) from??? absolutely > > no > > > idea... I mean, should there be xmldb:dbxml or xmldb:xindice? > > > > > > > > > > > > > > > ----- Original Message ----- > > > From: "Stephane Nimsgern" <[EMAIL PROTECTED]> > > > To: <[email protected]> > > > Sent: Friday, January 25, 2002 2:38 PM > > > Subject: RE: how can I list collections? > > > > > > > > > > Hi > > > > This code looks well but Instead of listCollections() I'd try > > > > listChildCollections(); > > > > > > > > -{Hi! How can I list collections? This code gives an error > > > > -{ > > > > -{String[] colindex = null; > > > > -{String driver = database_driver; > > > > -{ Class c = Class.forName(driver); > > > > -{ > > > > -{ Database database = (Database) c.newInstance(); > > > > -{ DatabaseManager.registerDatabase(database); > > > > -{ String r = database_prefix+parent; > > > > -{ System.out.println("gettin collection list"+r); > > > > -{ col = DatabaseManager.getCollection(r); > > > > -{ colindex = col.listCollections(); > > > > -{ > > > > -{at col.listCollections(); > > > > -{ru/evolve/innersmile/Connector.java [74:1] cannot resolve symbol > > > > -{symbol : method listCollections () > > > > -{location: interface org.xmldb.api.base.Collection > > > > -{ colindex = col.listCollections(); > > > > > > > > > > > > > >
