Transaction 내에서 ExecutorType 변경 불가 오류
Spring-Batch로 개발을 진행하던 중 아래와 같은 오류를 접하였다. org.springframework.dao.TransientDataAccessResourceException: Cannot change the ExecutorType when there is an existing transaction 현상은 "Transaction내에서 ExecutorType이 변경될 수 없다” 이다. 위 현상은 Batch 처리를 할 때 발생할 수 있다. 그 이유는 아래와 같다. MybatisPagingItemReader를 사용하면 내부적으로 SqlSessionTemplate이 생성될 때 ExecutorType.BATCH로 지정된다. 만약 MybatisPagingItemReader에서 다른 쿼리를 날려보고자 한다면..
Programing/Spring-Batch
2017. 3. 15. 18:36
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Git
- mongo
- db
- Oracle
- linux
- Learning Spark
- spring
- 확률분포
- 알고리즘
- Hdfs
- 데이터 리터러시
- spark
- exception
- Apache Spark
- 태그를 입력해 주세요.
- jackson
- mysql
- json
- bigdata
- PYTHON
- Django
- jenkins2.0
- Sqoop
- jenkins
- 책요약
- 데이터과학자
- java
- mongodb
- HADOOP
- flume
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함