|
Re: [enhydra] Loading multiple Config files: msg#00012java.enhydra.general
Hi Rafael, Config object, in Enhydra 6.x, is initialized trough JNDI parameters. 'ConfigFile' (or 'XMLConfigFile') are reading just context JNDI parameters (placed in descriptor files - web.xml and context.xml) and specific JNDI resource named "configuration/ConfConfigurationFactory" (which is recognized as application configuration file). There is a question of using multiple 'Config' objects inside of one enhydra application!? To make long story short, we have left (for back compatibility reasons) way to do this! Instead ConfigFile(File) constructor just use ConfigFile(FileInputStream). your sample code: Config genericConfig = new ConfigFile(new FileInputStream(configFileLocation)).getConfig(); Note that if this 'Config' object is used for DODS (DatabaseManager) initialization you are strongly recommended not to use 'DataSource' connection definition (this feature is supported in newest DODS that will be included in upcoming Enhydra 6.5-1). Hope this works for you! Regards, Slobodan Vujasinovic Enhydra Development Team Rafael Torres wrote: Hi, -- You receive this message as a subscriber of the enhydra@xxxxxxxxxxxxx mailing list. To unsubscribe: mailto:enhydra-unsubscribe@xxxxxxxxxxxxx For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [enhydra] Re: [dods] Version conflict problem, Ricardo Tedim |
|---|---|
| Next by Date: | Re: [enhydra] DeleteCascade on PostgreSQL, Sinisa Milosevic |
| Previous by Thread: | [enhydra] Loading multiple Config files, Rafael Torres |
| Next by Thread: | [enhydra] Re: [dods] Version conflict problem, Ricardo Tedim |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |