What do you mean by synchronous shutdown , can you explain this ?
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
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
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.