Sun GlassFish Enterprise Server 2.1 Developer's Guide

Stopping an Enterprise Server

The Samples.stopServer method demonstrates how to stop an Enterprise Server. The stopServer method simply calls the Samples.getJ2EEServer method on a given server instance, and then calls J2EEServer.stop.