try {
//비즈니스 로직
bizLogic(fromId, toId, money); transactionManager.commit(status); //성공시 커밋
} catch (Exception e) { transactionManager.rollback(status); //실패시 롤백
throw new IllegalStateException(e);
}
release 없앤다. 왜냐면 트랜잭션이 커밋 되거나 롤백 되면 다 끝난거다. 그 커넥션 정리해서 닫으면 된다. 트랜잭션이 종료되면 커넥션을 더이상 쓸 일이 없기 때문에 트랜잭션 매니저 내부에서 트랜잭션 정리하고 닫아준다.