home

Spring Batch

<bean id="batchDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    <property name="driverClassName" value="${batch.jdbc.driver}"/>
    <property name="url" value="${batch.jdbc.url}"/>
</bean>

<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
    <property name="jpaDialect">
        <bean class="org.springframework.orm.jpa.vendor.HibernateJpaDialect"/>
    </property>
</bean>

<batch:job-repository id="jobRepository"
                      data-source="batchDataSource"
                      isolation-level-for-create="DEFAULT"/>