This content has been marked as final.
Show 4 replies
-
1. Re: Synchronous stop
vickyk Oct 14, 2005 6:51 AM (in response to denisius)What do you mean by synchronous shutdown , can you explain this ?
Regards
Vicky -
2. Re: Synchronous stop
denisius Oct 14, 2005 7:07 AM (in response to denisius)I must notify user that server stopped. So for example it should be like:
....
server.synchStop(); // ivoke via RMIAdapter
System.out.println("server stopped"); // here i must be sure that jboss realy stopped
..... -
3. Re: Synchronous stop
vickyk Oct 14, 2005 7:26 AM (in response to denisius)I dont think there is any method to do so and it also does not make the logical sense also . Why don't you use the jmx-console to invoke the shutdown and then verify the same is done by refreshing the page .
However I will investigate and see if there can be a way to do that , I got to check myself this
Regards
Vicky -
4. Re: Synchronous stop
denisius Oct 18, 2005 12:07 PM (in response to denisius)As i understand the best solution is to add shutdownHook to VM and when VM runs this hook it means that server will stop soon - in few sec.