General Batch Instance Installation

BXM General Batch Instance Environment File List
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

  1. BXM online instance configuration

    1. Open the $BXM_HOME/batch/config/bxm-batch.xml file.

    2. 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>
      
      ...
    3. Open $BXM_HOME/batch/config/datasource.properties.

    4. 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.

      jdbc datasource configuration in bxm-application.xml
      image::batch-jdbc-datasource-conf.png[]

      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>>
    5. Open the batch execution Shell $BXM_HOME/batch/bin/runJob.sh.

    6. 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 "
      
      ...
SWLab Bankware Global
  • 전체
  • BXM
  • BXCM
  • BXCP
  • BXI
제품 선택 시 더 정확한 매뉴얼 가이드를 제공해드립니다.

Copyright© Bankwareglobal All Rights Reserved.