Deploying 3DOrchestrate in the Java Application Server

You can use the Java EE deployment utility to simplify and automate the task of deploying and configuring the 3DOrchestrate Distribution Server application within TomEE+.

This page discusses:

Using the Deployment Utility GUI

There are several ways to run the deployment utility. The easiest is to have the 3DOrchestrate Distribution Server installer automatically run the interactive GUI version when the installer completes. If you select this option in the installer, you can see the following menu of options when the deployment utility starts:

Java EE deployment utility

The user interface includes several tabs:

Deploy

Displays several lists of actions that you can perform. You configure your required settings in the other tabs and save the settings to a parameters file, then select the actions to perform and click Execute. The Combined actions options sets or clear other selections in a group to perform more complex, combined actions; for example, Configure all or Reconfigure server.

General Settings
Allows you to set the Java EE application name (server name) and to select various subdirectories for the installation. The default application/server name is exe1.
TomEE+ Settings
Allows you to enter the server machine host name and port number to be used for the application.
Database Settings

Allows you to enter various database settings such as schema user name/password, and tablespace name.

ActiveMQ Settings

Allows you to enter the ActiveMQ port numbers. The ActiveMQ ports and their default port numbers are:

  • ActiveMQ JMS over TCP Port: 61616
  • ActiveMQ JMS over HTTP Port: 61716
  • ActiveMQ JMX Port: 1099

Deploy Log
Displays informational messages when any action is performed.

The deployment utility performs all actions required to deploy and run the 3DOrchestrate Distribution Server application. It takes care of editing all required configuration files except for the Dassault Systèmes license client configuration.

After the deployment utility completes, you can find the EAR file for the 3DOrchestrate Distribution Server application in the following subdirectory:

<server_install_dir>/<servername>/build/tomee/SMAExeServerEAR-TomEE.ear

For reference, the deployment utility creates the following default subdirectories in Windows (in the General Settings tab):

Software install directory
C:\Program Files\Dassault Systemes\3DOrchestration\V6R2026x\win_b64\
Configuration directory
C:\Program Files\Dassault Systemes\3DOrchestration\V6R2026x\config\
Data directory
C:\Program Files\Dassault Systemes\3DOrchestration\V6R2026x\exe1\

Running the Deployment Utility from the Command Line

You can start the deployment utility from the command line at any time by executing the following batch or script file:

<server_install_dir>\win_b64\reffiles\SMAExeServer\deploy\smaexe-deploy.bat
<server_install_dir>/linux_a64/reffiles/SMAExeServer/deploy/smaexe-deploy.sh

If you run smaexe-deploy with no command-line arguments, the GUI version of the utility starts. If smaexe-deploy is run with command-line arguments, it runs silently and reads in the configuration settings from a parameter file that you have prepared. A template for this parameter file, with instructions and example settings, is provided in the same directory:

<server_install_dir>/<os>/reffiles/SMAExeServer/deploy/deploy.param

The syntax of this file is the Java Properties file format. The parameters in this file are the same as the actions available in the deployment utility GUI (see Figure 1). To see definitions of all command-line arguments for the deployment utility, type smaexe-deploy -h. The basic usage syntax and available command-line arguments are as follows:

smaexe-deploy [-g] [-v] [-q] [-h] [-n]  paramfile [action,action,...]

Where paramfile is the name of the parameter file to use and action is an action to perform, such as deploy to deploy the EAR file or all to configure, deploy, and start the application.

paramfile

A customized deployment parameters file that you have prepared.

The deployment utility looks for the file deploy.param first in the user's root directory; if the file is not found there, the file is updated (or created) or read from the <server_install_dir>/config/ directory. Alternatively, you can specify an absolute path (fully qualified path) and filename to force the deployment utility to use a particular parameters file in any location (including a network shared directory).

action,action,...
A comma-separated list of actions to perform. The default is all.
-g Use GUI mode with a graphical user interface. If this option is omitted, the deployment utility runs silently and reads in the configuration options from the parameter file specified.
-v Provide verbose informational messages.
-q Run quietly, with less feedback.
-h Show a command-line usage summary with help for all arguments and actions.
-n No-overwrite mode—do not overwrite deployment parameter files that already exist.

Comprehensive actions
all Do everything required to configure and start the 3DOrchestrate Distribution Server application (build, create server and database, configure, deploy EAR file).
stopall Stop the Java Application Server and database (if the database is on this machine).
removeall Stop and remove the Java Application Server and database. This action undoes the all action.
Individual lower-level actions
build Build an EAR file.
clear Remove the contents of the database and the 3DOrchestrate file manager. Database tables are left in place. Use this action only during testing to quickly reset the database to a known state.
config Configure the application server if not already configured.
deploy Deploy the EAR file in TomEE+. This action is always performed unconditionally.
reconfig Remove and recreate the application server configuration.
remove Remove the application server profile and configuration files for 3DOrchestrate Distribution Server. This action does not remove TomEE+.
removedb Remove database schema and user.
restart Stop and restart application server.
schema Create database user and schema.
start server Start server.
startall Start a database and application server.
startdb Start database if it is not running.
startstation Start the station on the 3DOrchestrate Distribution Server machine (if a station was installed).
stopstation Stop the station on the 3DOrchestrate Distribution Server machine.
stopallstations Stop all stations connected to this 3DOrchestrate Distribution Server, both local and remote.
status Report the status of the database and application server.
stop server Stop server.
stopdb Stop database.
tables Create database tables.

When the deployment utility runs, time-consuming actions like creating the database are skipped if they have already happened successfully. Smaller actions, especially deployment of the EAR file, are performed every time. To redo the larger actions, you must first remove the application server (TomEE+) or database. The actions are performed in the required order, not the order in which they are listed on the command line. Specifically, the application server stops and restarts as required during the configuration and deployment process.

Deploying 3DOrchestrate ActiveMQ and TomEE Application Server Using the SMAEXE-Deploy Script
<server_install_dir>/<OS>/reffiles/SMAExeServer/deploy/smaexe-deploy.[bat/sh]
<server_install_dir>/config/deploy.param create/build/config/deploy
Deploying the ActiveMQ and TomEE Application Server
During the build, configuration, and deployment phases, the deployment tool installs the ActiveMQ server into the ActiveMQ-one directory.

3DOrchestrate ActiveMQ Server

<deploy directory>/activemq-one

3DOrchestrate TomEE Application Server

<deploy directory>/tomee

For example, if the deploy directory is D:\Program Files\Dassault Systemes\3DOrchestrate\exe1 then:

3DOrchestrate ActiveMQ Server:

D:\Program Files\Dassault Systemes\3DOrchestrate\exe1\ActiveMQ-one

3DOrchestrate TomEE Application Server:

D:\Program Files\Dassault Systemes\3DOrchestrate\exe1\tomee

Recommendation: Use the Fully Qualified Domain Name (FQDN), instead of the hostname for all 3DOrchestrate deployments.