If you can only use FTP, then this is quite difficult.  The best
solution would be to allow an internal machine to connect to the external
machine on port 8007.  Then you could use AJP12 and remotely stop the
server.  Note, you would want to make sure that the host machine
periodically checks and restarts the process.

        A solution (not that's its a good one, and it requires starting a
few processes on the server first) would be to have a process the looks at a
paticular place on the file system for a file.  If its present it stops and
starts Tomcat.  You could extends this out to doing all sorts of things
(like sending shell scripts, etc), however that would open up big security
holes.  

        Another solution is to have a keep-alive script (something that
checks if Tomcat is running, and if not, starts it).  Then write a servlet
that calls System.exit.  This would exit Tomcat, and the keep-alive script
would start it again.

        All of these, though, require having a daemon process running on the
server to do some work for you.  If you can't get any ports on the firewall
machine opened up, then I doubt that these are options eitehr.  In short,
its not possible to make Tomcat restart itself.

        Randy

-----Original Message-----
From: Salvady, Gopal [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 2:09 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Need help


The main reason for this question is because if I update a existing servlet,
it does not reload the servlet automatically and I have restart the server.
When the application is put outside the firewall, I am helpless to restart
the tomcat as I do not have access. 

Gopal

> -----Original Message-----
> From: Salvady, Gopal 
> Sent: Friday, February 02, 2001 2:00 PM
> To:   '[EMAIL PROTECTED]'
> Subject:      RE: Need help
> 
> Avery
> 
> Thanks. But I do not admin the firewall and as I said, I can only ftp the
> application to the machine.
> 
> Gopal
> 
> > -----Original Message-----
> > From:       Avery Buffington [SMTP:[EMAIL PROTECTED]]
> > Sent:       Friday, February 02, 2001 1:35 PM
> > To: [EMAIL PROTECTED]
> > Subject:    Re: Need help
> > 
> > 
> > Simplest solution (if you can admin the firewall) would be to put ssh on
> > the tomcat box and allow the firewall to pass the ssh traffic.  Sooner
> > or later you are going to need to access the box for maintennence or
> > upgrading and this would allow you access it in a secure manner (and not
> > have to drive to wherever the box is physically located).
> > 
> > -Avery
> > 
> > "Salvady, Gopal" wrote:
> > > 
> > > Friends,
> > > 
> > > Your help on this woule be highly appreciated. We have put an
> > application
> > > outside the firewall and we don't have access to the machine other
> than
> > > ftping our application. How do we start/stop tomcat webserver remotely
> > if it
> > > crashes. Any body with any experience or would like give tips please
> > help.
> > > 
> > > This is an immediate problem I am facing. I think I had sent an email
> in
> > > this regard sometime back. Bot sure whether anyone got back on this.
> > > 
> > > Appreciate any help.
> > > 
> > > Thanks
> > > 
> > > Gopal
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to