Oracle GlassFish Server 3.0.1 Embedded Server Guide

ProcedureTo Stop Embedded GlassFish 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 GlassFish 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 GlassFish Server From an Application.