Philippe,
You are right, I am calling the stopServer on the adm object in the server
and not via JOnASAdmin tool.
I made changes to the AdmInterface and the Adm class as Miroslav proposed it
and I am attaching the two files for your attention.

Currently I have made no changes to the JOnASAdmin class and would let you
handle it, as I am not sure if you want to just call the killServer method
or add a new command for killServer!

Thanks,

Murad

-----Original Message-----
From: Philippe Coq [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 10, 2001 1:37 AM
To: Halas, Miroslav
Cc: Meghani, Murad; '[EMAIL PROTECTED]'
Subject: Re: How to stop Jonas cleanly?


"Halas, Miroslav" wrote:
> 
> Philippe,
> 
> The problem Murad is working on is that we take Jonas, we embed it with
> Jetty and several other processes which runs in separate threads inside of
> the same JVM as a part of our very lightweight J2EE like server
> When we want to stop this server we want to stop all these processes so
they
> can clean up and end gracefully and then when everything is done, shutdown
> the JVM so in this case we are responsible for System.exit(0) and not
Jonas.
> 
> Do you think the best solution for this would be to change stopServer() to
> do not call System.exit(0) and add new method
> 
> public void killServer() throws RemoteException {
>         stopServer()
>         System.exit(0);
> }
> 
> Thanks,
> 
> Miro Halas

Hi,
yes, we can add killServer in the interface AdmInterface
implement it as you said, and change JonASAdmin
in order that the stopserver of JonasAdmin calls  killServer
instead of stopServer.
I am not sure that it is worth to implement a new command
in JonASAdmin for stopping  the server without killing it
(if not, there is more work ,find a new command, change the
public documentation etc...)
I think that Murad only need to call stopServer on the
adm object in the server and not via JOnASAdmin, true?

-- 
        Philippe

Philippe Coq  Evidian   Phone: (33) 04 76 29 78 49
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer at http://www.objectweb.org

Adm.java

AdmInterface.java

Reply via email to