From: Mark R. D. <mdi...@la...> - 2002-10-17 22:56:08
|
Please review what I posted previously about Database.setProperty("exist-home"). I posted the whole example as an attachment. But I don't know if it got through because I never get to see my own emails on the list. If the get/setProperties is the standard "dbxml" strategy for configuring the underlying Implimentation then that seems the appropriate means for getting alternate config location info into the DatabaseImpl. -Mark Per Nyfelt wrote: >What about passing in a configuration org.w3c.Document and suggest to add that to the XML:DB api? > >Than no instanceof and cast is needed and at least Xindice is also using XML for configuration setup >anyway so i do not see a big problem with getting it through. We would then just have > >db.configure(configuration); > > >Best regards, >Per > > > >>-----Original Message----- >>From: exi...@li... >>[mailto:exi...@li...]On Behalf Of Greg Steuck >>Sent: Thursday, October 17, 2002 7:43 PM >>To: exi...@li... >>Subject: Re: [Exist-open] Setting up eXist as an API >> >> >> >> >>>>>>>"Wolfgang" == Wolfgang Meier <me...@if...> writes: >>>>>>> >>>>>>> >> Wolfgang> I agree with you that we should find a better solution to >> Wolfgang> configure the db and improvements will be welcome. >> >>May I humbly suggest Avalon'izing eXist somewhat? It seems to make >>sense to configure the database instance if it is Configurable using >>Configuration object, so it changes from: >> >> Wolfgang> if(db instanceof org.exist.xmldb.DatabaseImpl) >> Wolfgang> ((org.exist.xmldb.DatabaseImpl)db).configure(confFile); >> >>To: >> if(db instanceof Configurable) >> ((Configurable) db).configure(configuration); >> >>Thanks >>Greg >> >> >>------------------------------------------------------- >>This sf.net email is sponsored by: viaVerio will pay you up to >>$1,000 for every account that you consolidate with us. >>http://ad.doubleclick.net/clk;4749864;7604308;v? >>http://www.viaverio.com/consolidator/osdn.cfm >>_______________________________________________ >>Exist-open mailing list >>Exi...@li... >>https://lists.sourceforge.net/lists/listinfo/exist-open >> >> >> >> > > > > >------------------------------------------------------- >This sf.net email is sponsored by: viaVerio will pay you up to >$1,000 for every account that you consolidate with us. >http://ad.doubleclick.net/clk;4749864;7604308;v? >http://www.viaverio.com/consolidator/osdn.cfm >_______________________________________________ >Exist-open mailing list >Exi...@li... >https://lists.sourceforge.net/lists/listinfo/exist-open > > |