"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
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to