6. <property name="dbConnection" value="${hibernate.connection.url}"
/>
<property name="minPoolSize" value="${hibernate.c3p0.min_size}"
/>
<property name="maxPoolSize" value="${hibernate.c3p0.max_size}"
/>
<property name="connectionTimeOut"
value="${hibernate.c3p0.timeout}" />
<property name="schedulerUrl" value="${quartz.scheduler.url}" />
<property name="comDir" value="${COM}" />
<property name="iffilesDir" value="${IFFILES}" />
<property name="fundataDir" value="${FUNDATA}" />
<property name="mprootDir" value="${MP_ROOT}" />
<property name="mptmpDir" value="${mptmp.dir}" />
<property name="pricingDir" value="${PRICING}" />
<property name="prodEnvFlag" value="${PRODENV}" />
<property name="xferDir" value="${XFER}" />
<property name="path" value="${PATH}" />
<property name="oracleHome" value="${ORACLE_HOME}" />
<property name="oracleTwoTask" value="${TWO_TASK}" />
<property name="sftpKeyPath" value="${sftp.key.filepath}" />
</bean>
<aop:config>
<aop:pointcut id="jobLauncherTxOperation"
expression="execution(*
ca.cgi.mvest.springframework.main.IJobLauncher.*(..))"></aop:pointcut>
<aop:pointcut id="defaultTxOperation"
expression="execution(*
ca.cgi.mvest.springframework.wms.*.*(..))"></aop:pointcut>
<aop:pointcut id="webTxOperation"
expression="execution(*
ca.cgi.mvest.web.admin.*.*(..))"></aop:pointcut>
In order to run Spring Batch, we need to configure SpringBatch
infrastructure.This includes creation of JobRepository, JobLauncher and
TransactionManager.
For each job, we need a separate xml context definition file. However, there
is a number of common objects that we will need recurrently.
7. JOB REPOSITORY:
JOB LAUNCHER:
MvestJobLauncher(class):
IJobLauncher(interface):It will contain the methods in
the MVestJobLauncher.java file
The jobLauncher as defined in the “app-config.xml” in
the batch of MVest clearly has a bean definition as:
<bean id="jobLauncher"
class="org.springframework.batch.core.launch.support.SimpleJobLauncher">
<property name="jobRepository" ref="jobRepository" />
</bean>
<bean id="jobRegistry"
class="org.springframework.batch.core.configu
ration.support.MapJobRegistry" />//