Exceptions pertaining to data access
All enterprise bean CMP beans under the EJB 2.0 Specification receive a standard EJBException when an operation fails.
JDBC applications receive a standard SQLException if any JDBC operation fails.
The product provides special exceptions for its relational resource adapter (RRA), to indicate that the connection currently held is no longer valid. The ConnectionWaitTimeoutException indicates that the application timed out trying to get a connection. The StaleConnectionException indicates that the connection is no longer valid.
Connection wait timeout
Stale connections
Resource adapter
Handling data access exception - error mapping in DataStoreHelper