You might want to code your application to perform a given action if a certain kind of exception is the root-cause of a failure and is nested within the exception that you receive. The default behavior in WebSphere Application Server might mask a nested or root-cause exception in your application.
You can set the following Java virtual machine (JVM) system property to true through the administrative console for WebSphere Application Server: com.ibm.websphere.ejbcontainer.includeRootExceptionOnRollback This change enables the remote client to receive nested exceptions when a rollback occurs.