----------------------------------------------------------------
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!!!
----------------------------------------------------------------
On Tue, 11 Apr 2000, David Engberg wrote:
> Is there a way to set JServ properties dynamically without hard-coding them
> into the jserv.properties file?
>
> For example, I'd like to be able to be able to specify the
> "wrapper.bin.parameters" property on a non-manual-mode server when I launch
> Apache. The "-C" option to Apache lets me specify Apache configuration
> options (e.g. "ApJServMount") at runtime, but is there a way to do the same
> thing for the properties in jserv.properties?
One way could be to make the startup program make a symlink to the jvm of
choice based on a commandline argument to the startup script, and then put
the name of the symlink in jserv.properties.
Like having a /sbin/startup script containing:
#!/bin/bash
ln -sf $1 /usr/local/apache/jvm
/etc/rc.d/init.d/httpd start
which called as:
/sbin/startup /usr/local/jdk118/bin/java
would use that jvm if jserv.properties contains
wrapper.bin=/usr/local/apache/jvm
Maybe this is considered dirty and not what you had in mind, but it should
work.
--
J�rgen
--
--------------------------------------------------------------
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]