This content has been marked as final.
Show 1 reply
-
1. Re: Setting isolation level for certain Connection
adrian.brock Mar 19, 2007 2:08 PM (in response to kkrivopustov)Use the source Luke :-)
ManagedConnection.cleanup() is invoked as part of the JCA spec
contract when a connection is returned to the pool.org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection public void cleanup() throws ResourceException { <snipped/> //reset all the properties we know about to defaults. synchronized (stateLock) { jdbcAutoCommit = true; jdbcReadOnly = readOnly; if (jdbcTransactionIsolation != transactionIsolation) { try { con.setTransactionIsolation(jdbcTransactionIsolation); jdbcTransactionIsolation = transactionIsolation; } catch (SQLException e) { mcf.log.warn("Error resetting transaction isolation ", e); } } } }