Installing Ondemand Batch Instance
Install $BXM_HOME/batch/batchServiceEndpoint on the WAS by selecting one of the two methods below.
-
Create a symbolic link
This guide proceeds under the assumption that the configuration is done with a symbolic link.
ln -s $BXM_HOME/batch/batchServiceEndpoint $BXM_HOME/../tomcat9_batch/webapps/batchServiceEndpoint -
Or copy
$BXM_HOME/batch/batchServiceEndpointIf you copied it, you must modify the configuration paths defined in the guide to the copied paths.
cp -R $BXM_HOME/batch/batchServiceEndpoint $BXM_HOME/../tomcat9_batch/webapps/batchServiceEndpoint
| File name | File location | Remarks |
|---|---|---|
web.xml |
batchServiceEndpoint/WEB-INF/ |
Web context configuration file |
bxm-ondemand-batch.xml |
batchServiceEndpoint/WEB-INF/classes |
BXM ondemand batch instance configuration file |
logback.xml |
Logback configuration file (used by BXM) |
|
commons-logging.properties |
Commons Logging configuration file (used by Spring) |
|
JobConfig.xml |
Batch Job common configuration file |
|
datasource.properties |
Batch DB connection configuration |
|
logLayer.properties |
File for configuring system, DB, and job log level |
-
Ondemand batch instance configuration
-
Open
$BXM_HOME/batch/batchServiceEndpoint/WEB-INF/classes/logback.xml. -
Find the
propertyitem below and changeBXM_HOMEto the BXM installation directory. For log levels, it is recommended to usedebugin development andinfoin production.... <property name="LOGS_ABSOLUTE_PATH" value="<<BXM HOME>>/bxm/logs" /> ... -
Open
$BXM_HOME/batch/batchServiceEndpoint/WEB-INF/classes/bxm-ondemand-batch/xml. -
Find the
environmentitem and changejdbc-datasourceandapplication-home. At this time, setBXM HOMEto the path where BXM is installed.... <environment> <datasource> <jdbc-datasource driver-classname="oracle.jdbc.OracleDriver" uri="<<DB JDBC URL>>" username="bxmv5" password="<<encrypted DB PASSWORD>>" validationQuery="select 1 from dual" validationQueryTimeout="30" maxTotal="50"/> </datasource> <loader mode="cold" autodeploy="false" lazy-init="true" nouse-snapshot="false" registry="off"> <application-home><<BXM HOME>>/apps/batch</application-home> </loader> </environment> ... -
Find the
on-demand-batchitem and modifyBXM_HOMEto the path where BXM is installed.... <on-demand-batch init-workers="10" max-workers="50" worker-wait-timeout="2000" logging-home="<<BXM HOME>>/logs/batch"/> ... -
Open
$BXM_HOME/batch/batchServiceEndpoint/WEB-INF/classes/datasource.properties. (The configuration method is the same as for normal batch.) -
Configure the datasource to be used by the application when executing batch. Configure
datasource.propertiesbased on the assumption thatjdbc dataSourceis configured inbxm-application.xmlas shown below.At this time, modify the parts enclosed with
<<…>>such asurl,password, etc. to match the user environment.driver-classname=oracle.jdbc.OracleDriver uri=<<DB JDBC URL>> username=bxmv5 password=<<encrypted bxm account password>>
-