TC Dispatcher Install and Debug With Async and NX
TC Dispatcher Install and Debug With Async and NX
Objective: To provide instructions for installing Dispatcher server to manage Asynchronous services for
workflow. Some bonus steps are also provided to help define the commonly used NX translations for JT
and CGM/PDF.
Prerequisites
1. To start you will be installing Dispatcher services. For this use case we will be using Tc11.2.x. The
features are located under “Enterprise Knowledge Foundation”.
Be sure to select the items highlighted above as we will be using all of them.
Teamcenter Dispatcher Installation – Async workflow & primary NX translations (bonus)
7. Verify you have the Scheduler, Module and Admin client selected for install. Unless there is a
port conflict please use the existing ports.
Teamcenter Dispatcher Installation – Async workflow & primary NX translations (bonus)
8. For the logging level, I prefer to set to TRACE for testing. This can later be changed to INFO for
routine translations. Also, for testing I prefer to run Dispatcher services as a console (stand-
alone console for Scheduler, Module and Dispatcher Client).
Teamcenter Dispatcher Installation – Async workflow & primary NX translations (bonus)
9. Verify you have the NxToPVDirect, NxToCgmDirect and AsyncService translation solutions
selected.
Teamcenter Dispatcher Installation – Async workflow & primary NX translations (bonus)
10. Verify the NX installation path (UGII_BASE_DIR) is correct in addition to the NX license server.
Teamcenter Dispatcher Installation – Async workflow & primary NX translations (bonus)
12. Verify the location of the logs directory and accept the remaining default settings.
Teamcenter Dispatcher Installation – Async workflow & primary NX translations (bonus)
13. Teamcenter should already be installed so select “Use current FCC”, which should be the path to
TC_ROOT\tccs.
Teamcenter Dispatcher Installation – Async workflow & primary NX translations (bonus)
Review: You should have the following Dispatcher directory structure after a successful install.
Teamcenter Dispatcher Installation – Async workflow & primary NX translations (bonus)
Post-installation tasks
17. In the Organization application define the SOA URL for the site that will be using the Dispatcher
AsyncService.
EPM_task_execution_mode=CONFIGURABLE
EPM_enable_apply_template_changes=OPTIONAL
20. Add the login credentials for the async_invoker by editing the
DR\Module\Translators\asyncservice\asyncservice.bat script as follows:
Was:
"%TC_ROOT%\bin\async_invoker.exe" %1 %2 %3 %4 %5
Now:
Or
21. Let’s also adjust the NxToCgmDirect translator to use .pdf versus the default .cgm format. This is
very handy! For this we will edit the DR\Module\Translators\nxtocgmdirect\nxtocgmdirect.bat
script.
Was:
Now:
Upon successful translation the admin console should report success as shown below.
Teamcenter Dispatcher Installation – Async workflow & primary NX translations (bonus)
Debugging
For debugging the following debugging can be enabled to troubleshoot issues for the scheduler, module
or dispatcher client.
3. Shut down all dispatcher services and set the debug and follow the steps below to enable
debugging for dispatcher.
4. Restart all dispatcher services and duplicate the problem as noted below, then capture the
requested data.
*****
To enable Dispatcher debugging please modify the log4j.xml files for the DispatcherClient, Module and
Scheduler as follows:
<DISP_INST_DIR>\DispatcherClient\conf\log4j.xml
<DISP_INST_DIR>\Module\conf\log4j.xml
<DISP_INST_DIR>\Scheduler\conf\log4j.xml
There should be two entries in each file noted above. Ensure all are set to "TRACE".
set TC_KEEP_SYSTEM_LOG=TRUE
set TC_Journalling=ON
set TC_TRACEBACK=ON
set TC_journaling=ON
set TC_POM_JOURNALLING=N
set TC_Journal_Modules=ALL
set TC_SQL_DEBUG=BJTP
set TC_JOURNAL=MODULES
2. Start all Dispatcher services. This will activate Dispatcher tracing & journalling.
a) <DISP_INST_DIR>\Logs directory
b) <DISP_INST_DIR>\Stage\DC\<folder translation job that failed>
c) Copy of \DispatcherClient\conf\service.properties
d) Copy of \Module\conf\translator.xml
e) Copy of site preference .xml file
f) Copy of dispatcher tcserver .syslog
g) Copy of dispatcher tcserver .jnl
Note1: Do not capture all job folders in the \Stage\DC\ directory. Only the subfolder for the job that
failed.
Note2: The file sizes for the dispatcher client .syslog & .jnl will be larger because journalling is enabled.
This will help you distinguish them from regular rich client syslog.
Joseph Ringling