----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

This solved the problem. I put this line in my jserv.properties to
make the call you mentioned happen: 
        wrapper.bin.parameters=-Dmy_properties=test
thanks

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 30, 2000 12:37 PM
To: [EMAIL PROTECTED]
Subject: Re: reading env vars passed from jserv


----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Sorry, of course 'p.getProperty("some_property");'
> Another approach would be to user properties. The filename of the
> properties would be specified when starting jserv with the option
> -D, for example
> 'java -Dmy_properties=/home/deller/java/props.properties
org.apache.jserv.JServ'
> You could then load the properties as usual, first opening a
> FileInputStream to the properties file like this:
> 
> FileInputStream fis = new
FileInputStream(System.getProperty("my_properties"));
> Properties p = new Properties();
> p.load(fis);
> g.getProperty("some_property");


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to