거의 한달을 삽질하던 문제였다.
정말 우연치 않게 검색된 블로그에서 힌트를 얻어 수정...
http://kyungtaak.tistory.com/66
역시 메뉴얼이 답이다.
블로그 내용은 하이버네이트3 버전 일때 설정인것 같아서 최신 버전으로 올려본다.
톰캣을 사용해서 jta는 atomikos를 사용했다.
hibernate.transaction.manager_lookup_class 설정은 하이버네이트3버전에서 사용하는 설정인듯..
hibernate.transaction.jta.platform는 하이버네이트4에서 추가되었다.
아래는 상세 내용들..
properties.put("hibernate.transaction.factory_class", "org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory");
//properties.put("hibernate.transaction.manager_lookup_class", "com.atomikos.icatch.jta.hibernate.TransactionManagerLookup");
properties.put("hibernate.transaction.jta.platform", "com.atomikos.icatch.jta.hibernate4.AtomikosPlatform");
properties.put("hibernate.transaction.flush_before_completion", "true");
properties.put("hibernate.transaction.auto_close_session", "true");
properties.put("hibernate.connection.release_mode", "auto");
댓글 없음:
댓글 쓰기