7. transaction 설정.
tasklet 에서 사용되는 transaction 설정을 한다.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.2.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.2.xsd">
<bean id="dbTransactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dbDataSource" />
</bean>
</beans>
'Spring > Batch' 카테고리의 다른 글
Spring batch no.6 (0) | 2016.08.24 |
---|---|
Spring batch no.5 (0) | 2016.08.24 |
Spring batch no.4 (0) | 2016.08.24 |
Spring batch no.3 (0) | 2016.08.24 |
Spring batch no.2 (0) | 2016.08.24 |