Sun GlassFish Enterprise Server v3 Embedded Server Guide

ProcedureTo Stop Embedded Enterprise Server

  1. Change to the root directory of the Maven project for your application.

  2. Run the Maven goal to stop the application in embedded Enterprise Server.


    mvn embedded-glassfish:stop
    

    This runs the stop method of the Server object and any other methods that are required to shut down the server in an orderly fashion. See Stopping an Embedded Enterprise Server From an Application.