Use eclipselink.logging.exceptions
to specify if exceptions are logged when the are thrown, before returning the exception to the calling application.
Table 5-53 describes this persistence property's values.
Using this property ensures that all exceptions are logged and not masked by the application code.
Example 5-45 shows how to use this property in the peristence.xml
file.
Example 5-45 Using logging.exceptions in persistence.xml file
<property name="eclipselink.logging.exceptions" value="true" />
Example 5-46 shows how to use this property in a property map.
Example 5-46 Using logging.exceptions in a Property Map
import org.eclipse.persistence.config.PersistenceUnitProperties;propertiesMap.put(PersistenceUnitProperties.LOGGING_EXCEPTIONS, "true");
For more information, see:
"Configuring WebLogic Server to Expose TopLink Logging" in Solutions Guide for Oracle TopLink