AW: Re: Dods standalone program (Vladimir Ritz Bossicard)

"Madl Alfred" <[email protected]> Sat, 29 Nov 2003 11:15:12 +0100
Newsgroups gmane.comp.java.enhydra.general
Message-ID <[email protected]>
Hi !

PLEASE wait some more days for the upcoming 5.1 maintenance release of
Enhydra 5.1 and DODS 5.1. We HAVE solved the DODS_HOME issue !!!

DODS will support to read the necessary runtime configuration for DB
vendors from the runtime jar file (if it can not find ENHYDRA_HOME
and/or DODS_HOME).

Greetings.

Alfred

-----Ursprüngliche Nachricht-----
Von: Vladimir Ritz Bossicard [mailto:[email protected]] 
Bereitgestellt: Mittwoch, 26. November 2003 17:53
Bereitgestellt in: Enhydra
Unterhaltung: Enhydra: Re: Dods standalone program (Vladimir Ritz
Bossicard)
Betreff: Re: Enhydra: Re: Dods standalone program (Vladimir Ritz
Bossicard)


> 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

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
_______________________________________________
Enhydra mailing list
[email protected] http://www.enhydra.org/mailman/listinfo.cgi/enhydra
smime.p7s (application/x-pkcs7-signature, 3.1 KB) - not displayed