OpenSource/Spring MVC(11)
-
ResourceBundleMessageSource, ReloadableResourceBundleMessageSource
ResourceBundleMessageSource 개요 1차 처리 버그?? 처 리 > ReloadableResourceBundleMessageSource 때문에 최적화 팀에서 빼달라고 연락이 왔다. 바로.. 5초마다 계속 번들을 읽어들이고 캐시하는 옵션 때문이였다. > 기존> WEB-INF/messages/MessageResources 변경> WEB-INF/messages/MessageResources > 번들을 찾지 못하는 오류가 났다...Why??? ㅠ _ ㅠ... 이유는 잘모르겠다..설정은 잘한것 같은데... 참고 사이트 : http://www.mkyong.com/spring/spring-resource-bundle-with-resourcebundlemessagesource-example/ > 처리..
2014.04.24 -
[Spring] SimpleAsyncTaskExecutor @Async 사용
title : [Spring] SimpleAsyncTaskExecutor @Async 사용 index 1. 환 경 2. 참고 사이트 > 1) SpringFramework 3.1 2) JUnit TEST 3) Log4j - Log쪽에 쓰레드 관련 녀석이 찍히도록 해놓음. 4) 설 정 2014/01/24 - [OpenSource/Spring MVC] - [Spring] @Async 를 이용한 쓰레드 중복 테스트 참조 글 : 참조 글에 나오는 설정만 다르고 테스트는 동일 하다. 단, SimpleAsyncTaskExecutor는 Thread Pool이 없이 요청 시에 수행 되기 때문에 리소스 관련 문제는 성능 테스트를 해보았다. 문제 없었다. ^0^Good~ > 1) http://docs.spring.io/sp..
2014.01.28 -
[Spring] <task:executor> @Async 를 이용한 쓰레드 중복 테스트
title : [Spring] @Async 를 이용한 쓰레드 중복 테스트 index 1. 환 경 2. 시나리오 3. 결 과 4. 테스트 코드 5. 참고 사이트 > 1) SpringFramework 3.1 2) JUnit TEST 3) Log4j - Log쪽에 쓰레드 관련 녀석이 찍히도록 해놓음. 4) 설 정 task:annotation : @Async를 사용 할 수 있겠죠잉~ task:executor : > 1) TEST-A : Thread Pool 50개 / 호출 10번 2) TEST-B : Thread Pool 50개 / 호출 1000번 2) TEST-C : Thread Pool 2000개 / 호출 1000번 > 1) TEST-A : 중복 없음. 2) TEST-B : 중복 현상 나타남. Thread ..
2014.01.24 -
[springframework] confing properties re-loading 기능
[springframework] confing properties re-loading 기능 1. 배 경 2. 구 현 3. 결 과 4. 참조 사이트 > Spring을 사용하면서 config properties 파일이 WAS의 재가동 없이 반영 되어야 하는 경우가 있다. 찾아보았더니 org.apache.commons.configuration.PropertiesConfiguration를 통해서 구현 할 수 었다!! > 1) spring의 context-properties.xml(properties location이 있는 context) 에서 bean을 만든다. - context-properties.xml 부분 이 부분 추가!! value에서 path부분에서 너무 많은 소요를 하였다..ㅠ.ㅠ...classpat..
2014.01.17 -
Heuristic completion: outcome state is mixed; nested exception is javax.transaction.HeuristicMixedException / TwoPhaseOutcome.HEURISTIC_HAZARD
환경 : Global Transaction을 사용 시 2개의 PostgreSQL을 사용 함. 주의 할 사항으로는 postgreSQL에서 config 파일인 data/postgresql.conf에서 max_prepared_transactions = 10 # zero disables the feature 을 양쪽 다 수정해주어야 한다. default가 0 일 것이다. 맨 아래에 참고 한 외국인 형님 사이트가 있다. 덕분에 수정하여 2pc 트랜잭션을 잘 할수 있었다^-^ [2013-06-10 13:53:10] [DEBUG] [BoardController.debug4Dev():497] - vo token : -1479550304 [2013-06-10 13:53:10] [DEBUG] [BoardFacade.deb..
2013.06.10 -
org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class
설정 시 아래와 같은 오류가 났다.. Could not autowire field: com.kt.guide.board.facade.BoardFacade com.kt.guide.board.controller.BoardController.boardFacade; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'boardFacade': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not a..
2013.06.10