ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Butler" <dhsc...@cstone.dhs.state.il.us>
Subject Re: StaleConnectionException
Date Tue, 15 Feb 2005 13:09:23 GMT
RTFM :-)

WebSphere has features to do exactly what Clinton described - pre test
the connection to see if its still valid.  Go here:


Search for "preTestSqlString".  Read the article titled "Ensuring
Applications Obtain Valid Connections".  We use this support and it
works flawlessly.

The code sample you referenced was for previous versions of WebSphere
that did not use J2C connection factories.  In that case, the sample
code did provide a (very clumsy) means of transaction recovery. 
Fortunately, code like that is no longer required.

Jeff Butler

View raw message