Exceptions pertaining to data access

All enterprise bean container-managed persistence (CMP) beans under the EJB 2.x specification receive a standard EJB exception when an operation fails.

JDBC applications receive a standard SQL exception 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 ConnectionWaitTimeout exception indicates that the application timed out trying to get a connection. The StaleConnection exception indicates that the connection is no longer valid.

 

See also


Connection wait timeout
Stale connections
Example: Handling data access exception - error mapping in DataStoreHelper
Database exceptions resulting from foreign key conflicts, or deadlock when entity beans are configured for optimistic concurrency control

 

See Also


Resource adapter