|
That's what I did!: msg#00036java.enhydra.general
Hi Vladimir, that's exactly the solution that I found. I examined the code and pondered if I should do a hack. But than I just set the DODS_HOME variable via System.setProperty before launching DODS .. and it worked. Thanks for your help! I still have some questions about the "correctness" of DODS as a caching manager. One of my concernes is that two or more threads access and try to update the same DO (this concern has been mentioned in the online manuals). How do I prevent this? (or how do I deal with it?) Isn't that a major drawback? The other question is, how do I use the SQL feature OFFSET and LIMIT? Often you need just a "page" of a table and it would be a big waste to load the entire table and throw away the parts you don't need! The best solution for this (I suppose the database optimizes this) would be the use of OFFSET and LIMIT. I would like to use DODS for some work at a university where I am tutoring some students and for this end I feel that a more "scientific" documentation would be necessary, explaining how the caching works, etc. (well, this is just my personal whishing list!) Thanks for your time, Axel Message: 2 Date: Wed, 26 Nov 2003 08:52:46 -0800 (PST) From: Vladimir Ritz Bossicard <vbossica@xxxxxxxxx> Subject: Re: Enhydra: Re: Dods standalone program (Vladimir Ritz Bossicard) To: enhydra@xxxxxxxxxxx Reply-To: enhydra@xxxxxxxxxxx > Still the same message: JVM can not find neither DODS > HOME nor ENHYDRA HOME! what I do is a HUGE hack. But it works: 1) set the dods home location in a property of the servlet (web.xml file) <servlet> <servlet-name>ApplicationGateway</servlet-name> <init-param> <param-name>DodsHome</param-name> <param-value>/opt/java/install/dods-5.1</param-value> </init-param> <init-param> <param-name>DodsConfig</param-name> <param-value>/home/vladimir/proto/test/config/dods.conf</param-value> </init-param> 2) in your servlet initialization code: System.setProperty("DODS_HOME", config.getInitParameter("DodsHome")); DODS.startup(config.getInitParameter("DodsConfig")); I won't say that it's a nice solution, but it does the job. hth -Vladimir ===== Vladimir Ritz Bossicard www.bossicard.com ===== Axel Wilhelm Berle e-mail: axelberle@xxxxxxxx Tel: (office) +55 16 618.0090 (mobile) +55 16 9964.6343 __________________________________________________________________ Gesendet von Yahoo! Mail - http://mail.yahoo.de Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: Dods standalone program (Vladimir Ritz Bossicard), Vladimir Ritz Bossicard |
|---|---|
| Next by Date: | Re: That's what I did!, João Ribeiro |
| Previous by Thread: | Help! can't start my servlet app any more !, Mathieu MANGEOT-NAGATA |
| Next by Thread: | Re: That's what I did!, João Ribeiro |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |