----------------------------------------------------------------
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!!!
----------------------------------------------------------------



A not-so-ugly hack:
I wrote a wrapper for a Java application I was helping develop a while back.
The wrapper was written in C on UNIX and was responsible for starting the
JVM and handling logging and signals, etc.  The trick I used was to create
"pipes" from my native app and hook them up to stdin, stdout, stderr of a
child process containing the code to actually bring up the JVM.  That way,
I could handle a SIGHUP and rollover the logs or whatever, just like Apache
does.  And anything written to System.out or System.err from within the JVM
was captured and written to the log.

I haven't looked at the JServ code in any detail, though, so I don't know
the effect of something like this on the current socket connection to Apache.
My guess is that it should be doable.  A similar platform-specific wrapper
could be written for Windows as well.

My time is pretty limited, but I could at least explain this idea in more detail
if someone is interested in implementing it...

Russ





jon * <[EMAIL PROTECTED]> on 10/28/99 03:42:18 PM

Please respond to Java Apache Users <[EMAIL PROTECTED]>

To:   Java Apache Users <[EMAIL PROTECTED]>
cc:    (bcc: Russ Pridemore/GVL/BSM/MCI)
Subject:  Re: java-apache-users Digest #570 - 10/27/99



----------------------------------------------------------------
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 10/28/99 12:23 PM, Rusty Wright <[EMAIL PROTECTED]> wrote:

> Here's an ugly solution; have all the messages go back to apache so it
> can do the logging.

Not possible with the current protocol. Also, this would be a huge amount of
overhead. Ugly suggestions don't help much. ;-( We need to strive to produce
quality software not ugly hacks. ;-(

-jon



--
--------------------------------------------------------------
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