Im working in a WebSphere Application Server 7, JDK 1.6 and Oracle 11g.
Im always receiving this error when using an ejb.
[7/1/10 17:12:28:770 BOT] 00000013
LocalTranCoor W WLTC0033W: Resource
jdbc/oraDS11 rolled back in cleanup of
LocalTransactionContainment.
[7/1/10
17:12:28:773 BOT] 00000013
LocalTranCoor W WLTC0032W: One or
more local transaction resources were
rolled back during the cleanup of a
LocalTransactionContainment.
This is how im getting the connection from the datasource in WAS.
javax.sql.DataSource ds = (javax.sql.DataSource) naming.lookup("DataSource");
conn= ds.getConnection();
Any help will be appreciated…
From the error message, you are doing some work inside a local transaction and not committing it. The uncommitted work gets rolledback by the container at the end of the method (by default).
This answer to Datasource rollback in WAS6.0 summarizes all this pretty well and since there is no real point at paraphrasing it, I’m quoting it below.
I’d suggest committing the work explicitly (and reading the whole answer).