Mail Archive Home | enhydra List | July 2005 Index
| <-- Date Index --> | <-- Thread Index --> |
Hi, For multiple database instances you should use: <env-entry><env-entry-name>DatabaseManager/Databases[]</env-entry-name> <env-entry-value>setnet_host, setnet_stage</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type> </env-entry>Database driver must be loaded by the same class loader as DODS binaries. Therefore if you have DODS binaries loaded by 'Shared Class Loader' (loads binaries from <enhydra_root>/multiserver/shared/lib) you should place your driver binary here also (to be loaded by the same class loader). This way DODS will be able to see your driver implementation.
Additionally, when you are using DataSource DatabaseManager configuration your DataSource object is actually initialized by Tomcat itself. Therefore, in this case your DB driver implementation is not obligate to be placed together with DODS binaries (but Tomcat requires driver implementation to be placed either in '<enhydra_root>/multiserver/common/lib' or in '<enhydra_root>/multiserver/shared/lib').
Hope this clears things up! Regards, Slobodan Vujasinovic Enhydra Development Team Phoebe Whitefield wrote:
Hi,I finally able to bring up enhydra now. Thanks for all thehelp. The other questions I have -) I tried to put in 2 logical databases by using this<!-- Generic DB configuration --> <env-entry> <env-entry-name>DatabaseManager/Databases[]</env-entry-name> <env-entry-value>setnet_host</env-entry-value> <env-entry-type>java.lang.String</env-entry-type><!-- why can't use 2 here, it only do 1 P.W. <env-entry-value>setnet_stage</env-entry-value><env-entry-type>java.lang.String</env-entry-type> --> </env-entry> <env-entry> <env-entry-name>DatabaseManager/DefaultDatabase</env-entry-name> <env-entry-value>setnet_host</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry> but it won't work. The error was - can't find setnet_host.From the enhydra.log, I found out enhydra only know aboutsetnet_stage, the last entry in the Databases[] value. Ummmmmm..... Also, I put my jdbc driver jar under app/WEB-INF/lib, but it complains not finding the driver, therefore, I moved the jar to ENHYDRA_HOME/multiserver/shared/lib, then it worked. thanks a million for all your help so far. Have a greatevening.Phoebe------------------------------------------------------------------------ -- 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
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.