Document Type | Technical Information
Category | Administration
Applicable Product Versions | 6FS07, 6FS07PS, 7FS01, 7FS02, 7FS02PS
Document Number | TADTI005
Overview
This guide provides instructions on configuring and starting the Java External Procedure Agent with examples.
It covers JEPA execution steps, JEPA process configuration and startup status, and additional notes.
Method
JEPA Execution Steps
1. Check Agent Process
$ ps -ef|grep tbjava
2. Agent Configuration and Startup Method
#. Be careful to avoid port number conflicts with the port you want to use
#. Use the same ENCODING as the DB server for synchronization
2-1. Configure $TB_HOME/client/epa/java/config/epa.cfg
#. listener port
LISTENER_PORT= [port to use]
#. Encoding options: "ASCII", "EUC-KR", "MSWIN949", "UTF-8", "UTF-16", "SHIFT-JIS",
#. "JA16SJIS", "JA16SJISTILDE", "JA16EUC", "JA16EUCTILDE", "VN8VN3", "GBK"
#. "WE8MSWIN1252", "ZHT16HKSCS", "CL8MSWIN1251", "WE8ISO8859P1",
#. "EE8ISO8859P2", "WE8ISO8859P9", "WE8ISO8859P15"
#. "CL8KOI8R", "CL8ISO8859P5"
ENCODING= [DB server character set]
2-2. Edit $TB_HOME/client/config/tbdsn.tbr
Add the following content
epa=(
(EXTPROC=(LANG=JAVA)
(LISTENER=(HOST= [epa process host ip])
(PORT=[listener port])
)
)
)3. Start Agent
cd $TB_HOME/client/bin ./tbjavaepa
Specifying JEPA Process Startup at DB Startup
- Whether to start JEPA process at DB startup: _PSM_BOOT_JEPA= Y|N
Classpath for creating Java objects: JAVA_CLASS_PATH = [specify class path]
vi $TB_HOME/config/$TB_SID.tip _PSM_BOOT_JEPA=Y JAVA_CLASS_PATH=Path where class files are generated after compilation
NoteIf the error below occurs, check whether the Agent is running (refer to 1. Check Agent Process)TBR-15138: Generic I/O error: Failed to connect Java External Procedure Agent.