Using A Script To Run Documaker Connector

Included in the installations are scripts you can use to start and stop Documaker Connector via a command prompt window. The name of the script varies, depending on the platform.

For this platform Use
Windows ecmconnector.bat
UNIX ecmconnector.sh

These scripts work the same way and have the same parameters. Here is the syntax: ecmconnector (parameters) The parameters include:

Parameter Description
-libdir path (Optional) Sets the Java classpath prefix for where to find all the Documaker Connector JAR files. The default path is ./lib
-action (type] Specifies the type of action to perform on this run. You must choose one of these options: start, runonce, or stop. start (run parameters) Runs the ECMConnector in server mode. runonce (run parameters) Runs the ECMConnector in singleton mode. stop (terminate parameters) Terminates a currently running ECMConnector.
If action type is either start or runonce, these run parameters are required:
-source (source) Specifies the document source component.
-destination (destination) Specifies the destination component.
The options for source and destination are shown here:
Source Description Destination Description
dmkr DocumakerSource ucm UCMDestination
batch BatchLoaderSource file FileDestination
mock MockSource ftp FTPDestination
    mock MockDestination
If action type is stop, all of these are optional terminate parameters:
Parameter Description
-pword password (Optional) Specifies the password needed to access the running instance. The default is no password.
-hostname server_host (Optional) Specifies the name of the server where the running instance is. The default is localhost.
-port port (Optional) Specifies the port number at which the running instance accepts commands. The default is 23232.
Here are some examples:
ecmconnector.bat -action start -source dmkr -destination ucm ecmconnector.bat -action start -source mock -destination mock -libdir ecmconnector.bat -action stop -pword please -libdir ./mylibdir ecmconnector.bat -action stop -libdir

Note:

The usage is:
ecmconnector.bat -action [start/runonce/stop] -source 
[dmkr/batch/mock] -destination [ucm/file/ftp/mock]