*/
// CHECKME: Is this still needed now?
public boolean databaseContextShouldHandleDatabaseException(EODatabaseContext dbc, Exception e) throws Throwable {
if(!reportingError.canEnter(dbc)) return true;
try {
EOAdaptor adaptor=dbc.adaptorContext().adaptor();
boolean shouldHandleConnection = false;
if(e instanceof EOGeneralAdaptorException)
log.error(((EOGeneralAdaptorException)e).userInfo());
else
log.error(e);
if (adaptor.isDroppedConnectionException(e))
shouldHandleConnection = true;
// FIXME: Should provide api to extend the list of bad exceptions.
else if (e.toString().indexOf("ORA-01041")!=-1) {
// just returning true here does not seem to do the trick. why !?!?
log.error("ORA-01041 detecting -- forcing reconnect");