. Of course
that's doable. It was to have a webapp running inside tomcat reboot its
own server.
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: Matthew Clark [mailto:[EMAIL PROTECTED]
>Sent: Sunday, May 16, 2004 5:40 AM
>To: Tomcat Users List
&g
ll script and restart and start scripts... These are just
called from an admin console that runs outside of the tomcat (PHP).
Regards,
Matthew
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 14 May 2004 14:30
To: Tomcat Users List
Subject: RE: Tomcat "reboo
On Sat, May 15, 2004 at 03:17:02PM -0400, Kevin D. Offet wrote:
: i don't know about other OS, but the process control features of the
: bash shell on linux would allow what i think you are trying to achieve.
Yes, shortly after I posted that message I did more digging on Java
threads and realized
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
a daemon thread is just an ordinary thread that has been set as a
daemon. their purpose is to be servant threads. when there are only
daemon threads left a program will exit.
as such, it executes in the same jvm instance as it's parent.
parent spawns da
It just hit me --
what about a (protected) servlet that spawns a daemon thread, which in
turn calls Runtime.exec( )?
Admittedly, I'm hazy on my Java threading right now, but if that would
work then it's something that's completley within the container, and no
more than a few lines of code.
-or a
On Fri, May 14, 2004 at 03:05:41PM -0400, Shapira, Yoav wrote:
: Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
: How would the webapp invoke this listener?
The listener would be started outside of the container, in a separate
process. A (protected) JSP/servlet run wihtin the container would
c
Hi,
How would the webapp invoke this listener?
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: QM [mailto:[EMAIL PROTECTED]
>Sent: Friday, May 14, 2004 2:55 PM
>To: Tomcat Users List
>Subject: Re: Tomcat "reboot" runtime
>
>On
On Fri, May 14, 2004 at 01:06:17PM -0400, Shapira, Yoav wrote:
:
: Any portable solutions (that would work on windows, not just unix, and
: on MacOS)?
A *very* alpha-tasting version is available at:
http://downloads.brandxdev.net/tomcat-479785/listenexec-0.1.0alpha.tar.gz
(written in Java)
Th
t;-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Thursday, May 13, 2004 9:02 AM
>To: Tomcat Users List
>Subject: RE: Tomcat "reboot" runtime
>
>
>
>Hi,
>What's running your program (in order to wait and issue a startup
&g
9:02 AM
To: Tomcat Users List
Subject: RE: Tomcat "reboot" runtime
Hi,
What's running your program (in order to wait and issue a startup
command) after you've done a shutdown? ;)
(Unless you're talking about highly tomcat-specific code that shuts down
tomcat and leav
Hi,
>1. The original question was if there is some highly tomcat-specific
code
>that enables a reboot at runtime. Spending very little time going
through
>the source code of catalina, it seems to me that even highly tomcat-
>specific code does not support a reboot a runtime.
This is true, which
: [snip: discussion re: ways to restart Tomcat, preferably
: through Tomcat itself]
Option #4: a listener that exists outside the Tomcat process, which
calls the container start/stop scripts on command.
I'm whipping up a prototype now: it's a basic socket listener that
stores the path to the To
1. The original question was if there is some highly tomcat-specific code that enables
a reboot at runtime. Spending very little time going through the source code of
catalina, it seems to me that even highly tomcat-specific code does not support a
reboot a runtime.
2. One solution could be to c
um Research Informatics
>
>
> >-Original Message-
> >From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, May 13, 2004 11:55 AM
> >To: Tomcat Users List
> >Subject: RE: Tomcat "reboot" runtime
> >
> >Personal
>-Original Message-
>From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
>Sent: Thursday, May 13, 2004 11:55 AM
>To: Tomcat Users List
>Subject: RE: Tomcat "reboot" runtime
>
>Personally, I don't see why the scheme that Adam came up with wouldn't
>wor
On Thu, May 13, 2004 at 11:23:17AM -0400, Shapira, Yoav wrote:
: I, on the other hand, would be interested to see what you come up with,
: so don't stop your train of thought on my account.
If you're looking for a full restart, there are several ways (in varying
levels of hackishness).
Once you'v
List" <[EMAIL PROTECTED]>
To
"Tomcat Users List" <[EMAIL PROTECTED]>
cc
Subject
RE: Tomcat "reboot" runtime
Hi,
I, on the other hand, would be interested to see what you come up with,
so don't stop your train of thought on my account.
Yoav Sh
4 11:13 AM
>To: Tomcat Users List
>Subject: RE: Tomcat "reboot" runtime
>
>Wouldn't it be possible to restart tomcat by writing a server-side
>program to trigger a shell-script?? Of course that may disrupt the
>operation of the website itself - I'd have to consult
Wouldn't it be possible to restart tomcat by writing a server-side
program to trigger a shell-script?? Of course that may disrupt the
operation of the website itself - I'd have to consult the docs to be
clearer on that.
If Yoav says it can't be done then I'm sure we'd be wasting our time by
trying
Hi,
No to both.
Yoav Shapira
Millennium Research Informatics
>-Original Message-
>From: Rudolf Feyerkleist [mailto:[EMAIL PROTECTED]
>Sent: Thursday, May 13, 2004 8:11 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat "reboot" runtime
>
>Is there a way to restart tomcat from a webapplication r
20 matches
Mail list logo