* Shutdown the J2EE PE/RI server. Called when "PEMain stop" is invoked,
* in a "client" VM. Does a remote invocation on the server.
*/
public static void shutdown() {
try {
RMIClient rmiClient = new RMIClient(
true,
getStubFilePath(),
getSeedFilePath());
ShutdownEvent shutdownEvent = new ShutdownEvent(SERVER_INSTANCE, "true");
getLogger().log(Level.INFO,
"sending notification to server..." +
SERVER_INSTANCE);
AdminEventResult result = rmiClient.sendNotification(shutdownEvent);
getLogger().log(Level.INFO,
"server.shutdown_complete");
} catch(Exception e) {
getLogger().log(Level.SEVERE, "j2eerunner.initError", e);