Starting and Stopping the 3DOrchestrate Distribution Server

You can start and stop the 3DOrchestrate Distribution Server application using batch file scripts on Windows or shell scripts on Linux.

This page discusses:

After you have installed and deployed the 3DOrchestrate Distribution Server application, you can start it in TomEE or ActiveMQ with the following batch or shell script file:

For TomEE server:

<server_install_dir>\exe1\tomee\bin\startup.bat
<server_install_dir>/exe1/tomee/bin/startup.sh

For ActiveMQ server:

<server_install_dir>\exe1\activemq-one\bin\startup.bat
<server_install_dir>/exe1/activemq-one/bin/startup.sh

This path uses the default exe1 as the Java EE application name (server name), but yours may be different if it was changed in the 3DOrchestrate deployment utility.

You can stop the running application with the following batch/script file:

For TomEE server:

<server_install_dir>\exe1\tomee\bin\shutdown.bat
<server_install_dir>/exe1/tomee/bin/shutdown.sh

For ActiveMQ server:

<server_install_dir>\exe1\activemq-one\bin\shutdown.bat
<server_install_dir>/exe1/activemq-one/bin/shutdown.sh

Note:

The deployment utility sets the server CATALINA_BASE environment variable to the following:

CATALINA_BASE = <server_install_dir>/exe1/[tomee/activemq-one]/

CATALINA_BASE is set rather than CATALINA_HOME to keep your installation-specific data and configuration separate from the TomEE and ActiveMQ installation directory—in order to simplify future TomEE and ActiveMQ upgrades (delivered by the 3DOrchestrate installer). The 3DOrchestrate Distribution Server application deployment is placed under CATALINA_BASE and CATALINA_HOME is not modified.

Checking for Successful Startup

You can monitor the log files in this directory to check for success messages or errors:

<server_install_dir>\exe1\tomee\logs\

In particular, look for the following message lines in the DS_SIMULIA_Execution.<date>.log file:

Sep 26, 2018 10:08:53 PM com.dassault_systemes.smaexe.ejb.SMAExeApplicationStartAndShutdown 
ALWAYS: Compute Orchestration Server server is now in RUNNING state.

You can also look for the following message in the catalina.<date>.log file:

INFO: Server startup in 2263 ms

Other Ways to Start and Stop the Server

Alternatively, you can start and stop the 3DOrchestrate Distribution Server application as follows:

  • Use the following deploy script to start or stop 3DOrchestrate, ActiveMQ, and the TomEE Application Server:

    <server_install_directory>/<os>/reffiles/SMAExeServer/deploy/smaexe-deploy.[bat/sh]
    <server_install_directory>/config/deploy.param start/stop

  • Use the Server Actions in the deployment utility. See Deploying 3DOrchestrate in the Java Application Server.

    Warning: When you have started the 3DOrchestrate Distribution Server interactively from the deployment utility GUI, do not close your user session (that is, do not log out)—this will stop the running application.

  • Install the server application as a Windows Service using the deployment utility. See Configuring the 3DOrchestrate Distribution Server as a Windows Service.

    Note: This service stops or starts the TomEE Application Server only not the ActiveMQ server, you must start or stop the ActiveMQ server manually.