Starting processes are easy - just use Runtime.exec. The problem
might be detecting when to start them. My suggestion would be to not have
them run as services, but have your servlet start them. Then when your
sevlet detects they stop (there's a method in Process class to determine it
its still alive) start it again.
Randy
> -----Original Message-----
> From: Kenneth Westelinck [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 15, 2001 10:43 AM
> To: [EMAIL PROTECTED]
> Subject: Start processes on the server
>
>
> Hi all,
>
>
> I have a server running Apache 1.3.14 together with Tomcat 3.2.1 on a
> Windows NT 4.0 box . On this server there are some Java
> programs running,
> say ProgA and ProgB. If ProgA crashes than someone has to go
> to the server
> and execute the startProgA.bat to restart the Java process.
> Same problem if
> ProgB crashes.
>
> Is it possible to restart this processes by means of a web
> interface? Is it
> possible to write a Servlet/JSP (anything) that restarts this
> process? If
> this exists can I use this on Unix/Linux too?
>
>
> many thanks in advance,
>
> Kenneth Westelinck
> ______________________________________________________________
> ___________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
>