RE: Tomcat "reboot" runtime

2004-05-17 Thread Shapira, Yoav
. 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

RE: Tomcat "reboot" runtime

2004-05-16 Thread Matthew Clark
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

Re: Tomcat "reboot" runtime

2004-05-15 Thread QM
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

Re: Tomcat "reboot" runtime

2004-05-15 Thread Kevin D. Offet
-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

Re: Tomcat "reboot" runtime

2004-05-14 Thread QM
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

Re: Tomcat "reboot" runtime

2004-05-14 Thread QM
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

RE: Tomcat "reboot" runtime

2004-05-14 Thread Shapira, Yoav
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

Re: Tomcat "reboot" runtime

2004-05-14 Thread QM
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

RE: Tomcat "reboot" runtime

2004-05-14 Thread Shapira, Yoav
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

RE: Tomcat "reboot" runtime

2004-05-14 Thread Richard Calosso
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

RE: Tomcat "reboot" runtime

2004-05-14 Thread Shapira, Yoav
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

Re: Tomcat "reboot" runtime

2004-05-13 Thread QM
: [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

RE: Tomcat "reboot" runtime

2004-05-13 Thread Rudolf Feyerkleist
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

RE: Tomcat "reboot" runtime

2004-05-13 Thread Adam Buglass
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

RE: Tomcat "reboot" runtime

2004-05-13 Thread Shapira, Yoav
>-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

Re: Tomcat "reboot" runtime

2004-05-13 Thread QM
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

RE: Tomcat "reboot" runtime

2004-05-13 Thread Timothy_Sabin
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

RE: Tomcat "reboot" runtime

2004-05-13 Thread Shapira, Yoav
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

RE: Tomcat "reboot" runtime

2004-05-13 Thread Adam Buglass
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

RE: Tomcat "reboot" runtime

2004-05-13 Thread Shapira, Yoav
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