Samples > Samples Server and Console > Controlling the Samples Console > Stopping and Restarting the Samples Server from the Samples Console

When you start the Samples Console, the Samples Server is automatically started. Certain samples or tutorials may require you to stop and restart the Samples Server, or to restart the Samples Server in debug mode.

Note
When the Samples Server is running, a check mark is displayed in the Server Started check box in the bottom left corner of the Samples Console window.

To stop the Samples Server:

  1. Click the Stop Server button in the Samples Console. This sends a shutdown message to the JBoss server.
  2. It may take a while for the server shutdown procedure to complete. The Server Trace tab is displayed and shows the progress of the shutdown procedure.
  3. A Shutdown complete message indicates when the server has finished shutting down.

You can restart the Samples Server from the console.

To restart the Samples Server:

  1. Click the Start Server button in the Samples Console. This sends a startserver message to the JBoss server.
  2. It may take a while for the server startup procedure to complete. The Server Trace tab displays feedback messages as the server starts.
  3. When startup of the Samples Server is complete, the Documentation tab is displayed and a check mark is displayed in the Server Started check box in the bottom left corner of the Samples Console window.

The Samples Server can also be started in debug mode.

To start the Samples Server in debug mode:

  1. If the Samples Server is already running, click the Stop Server button in the Samples Console. This sends a shutdown message to the JBoss server.
  2. It may take a while for the server shutdown procedure to complete. The Server Trace tab is displayed and shows the progress of the shutdown procedure.
    A Shutdown complete message indicates when the server has finished shutting down.
  3. Click the Start Server (Debug) button to start the Samples Server in debug mode.
  4. Debug mode enables an external debugging tool to connect to the JBoss server and step into the Java code and the rules.
    It may take a while for the server startup procedure to complete. The Server Trace tab displays feedback messages as the server starts. When startup of the Samples Server is complete, a check mark is displayed in the Server Started check box in the bottom left corner of the Samples Console window.

Related Tasks

Starting and Stopping the Samples Console
Running Samples from the Samples Console
Starting and Stopping the Samples Server Without the Samples Console

Related Samples and Tutorials

Tutorial: Debugging a Remote Rule Execution Server Application