문제

I wanted to know how to trace what code exactly caused the following warning in WebSphere.

WLTC0032W: One or more local transaction resources were rolled back during the cleanup of a LocalTransactionContainment.

In our application, we have a lot of classes from where we obtain a JNDI DataSource and execute SQL and I wanted to know is there a way by turning debug on in test environment to exactly pin-point the class that causes this warning. I am unable to find exception stack trace in SystemErr.log.

도움이 되었습니까?

해결책

The message indicates that you performed some local transaction work as part of that containment scope but did not commit. I suggest two options:

1) Commit the local transaction

connection.commit(); 

2) Putdata source to auto-commit

connection.setAutoCommit(true);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top