General Batch Instance Installation
| File name | File location | Remarks |
|---|---|---|
logback_general.xml |
$BXM_HOME/batch/config/logback |
logback configuration file (used by BXM) |
bxm-batch.xml |
$BXM_HOME/batch/config |
BXM batch instance configuration file |
commons-logging.properties |
||
commons logging configuration file (used by Spring) |
JobConfig.xml |
|
Common configuration file for batch Job |
||
datasource.properties |
||
DB connection configuration file for batch |
logLayer.properties |
-
BXM online instance configuration
-
Open the $BXM_HOME/batch/config/bxm-batch.xml file.
-
Find the environment item and modify jdbc-datasource and application-home. At this time, modify BXM HOME to the path where BXM is installed. Modify the parts surrounded by <<…>>, such as url and password, to match the user environment. Modify the Pool configuration values (maxTotal, etc.) to appropriate values for the user environment.
... <environment> <system-properties> batch.node.no=1 </system-properties> <system-mode>D</system-mode> <datasource> <jdbc-datasource driver-classname="oracle.jdbc.OracleDriver" uri="<<DB JDBC URL>>" username="bxmv5" enc-password="<<encrypted DB PASSWORD>>" validationQuery="select 1 from dual" validationQueryTimeout="30" maxTotal="10" /> </datasource> <loader mode="cold" autodeploy="false" lazy-init="true" registry="off"> <application-home><<BXM HOME>>/apps/batch</application-home> </loader> </environment> ... -
Open $BXM_HOME/batch/config/datasource.properties.
-
Configure the datasource to be used by the application when executing the batch. Configure datasource.properties assuming that jdbc dataSource is configured in bxm-application.xml as follows.
At this time, modify the parts surrounded by <<…>>, such as url and password, to match the user environment.
driver-classname=oracle.jdbc.OracleDriver uri=<<DB JDBC URL>> username=bxmv5 password=<<encrypted bxm account password>> -
Open the batch execution Shell $BXM_HOME/batch/bin/runJob.sh.
-
Modify the log file and each configuration value. (Skip if modification is not necessary)
... LOGFILE=<<BXM HOME>>/logs/batch/$2/$3_`date "+%Y%m%d%H%M%S"`.log OPT="-DJOBID:${3} -Xms${HEAP_MEM_VAL}m -Xmx${HEAP_MEM_VAL}m \ -Dbatch.domain.id=${DOMAIN_ID} \ -Dlogfile=${LOGFILE} \ -Dconfig-location=file:///$BAT_HOME/config/bxm-batch.xml \ -Ddatasource-location=file:///$BAT_HOME/config/datasource.properties \ -Dseparated.jobconfig=true \ -Dlog.level.layer.file=$BAT_HOME/config/logLayer.properties \ -classpath $CLASSPATH " ...
-