public void pushDbContext(ContextManager cm) { /* We cache the locale in the DatabaseContext * so that the Datatypes can get to it easily. */ new DatabaseContextImpl(cm, this); }
/** * DOCUMENT ME! * * @param t * DOCUMENT ME! */ public void cleanupOnError(Throwable t) { if (!(t instanceof StandardException)) { return; } StandardException se = (StandardException)t; // Ensure the context is popped if the session is // going away. if (se.getSeverity() < ExceptionSeverity.SESSION_SEVERITY) { return; } popMe(); // Asif:The bug is that the CacheClosedException may have been thrown by // remote cache but it would cause local cache shutdown, so check if the // current cache is genuinely closed or was it remote final GemFireCacheImpl cache = Misc.getGemFireCacheNoThrow(); if (se.getSeverity() == ExceptionSeverity.DATABASE_SEVERITY && (cache == null || cache.getCancelCriterion().cancelInProgress() != null)) { ContextService.getFactory().notifyAllActiveThreads(this); Monitor.getMonitor().shutdown(db); } }
/** * DOCUMENT ME! * * @param t * DOCUMENT ME! */ public void cleanupOnError(Throwable t) { if (!(t instanceof StandardException)) { return; } StandardException se = (StandardException)t; // Ensure the context is popped if the session is // going away. if (se.getSeverity() < ExceptionSeverity.SESSION_SEVERITY) { return; } popMe(); // Asif:The bug is that the CacheClosedException may have been thrown by // remote cache but it would cause local cache shutdown, so check if the // current cache is genuinely closed or was it remote final GemFireCacheImpl cache = Misc.getGemFireCacheNoThrow(); if (se.getSeverity() == ExceptionSeverity.DATABASE_SEVERITY && (cache == null || cache.getCancelCriterion().cancelInProgress() != null)) { ContextService.getFactory().notifyAllActiveThreads(this); Monitor.getMonitor().shutdown(db); } }
public void pushDbContext(ContextManager cm) { /* We cache the locale in the DatabaseContext * so that the Datatypes can get to it easily. */ new DatabaseContextImpl(cm, this); }
/** * DOCUMENT ME! * * @param t * DOCUMENT ME! */ public void cleanupOnError(Throwable t) { if (!(t instanceof StandardException)) { return; } StandardException se = (StandardException)t; // Ensure the context is popped if the session is // going away. if (se.getSeverity() < ExceptionSeverity.SESSION_SEVERITY) { return; } popMe(); // Asif:The bug is that the CacheClosedException may have been thrown by // remote cache but it would cause local cache shutdown, so check if the // current cache is genuinely closed or was it remote final GemFireCacheImpl cache = Misc.getGemFireCacheNoThrow(); if (se.getSeverity() == ExceptionSeverity.DATABASE_SEVERITY && (cache == null || cache.getCancelCriterion().cancelInProgress() != null)) { ContextService.getFactory().notifyAllActiveThreads(this); Monitor.getMonitor().shutdown(db); } }
public void pushDbContext(ContextManager cm) { /* We cache the locale in the DatabaseContext * so that the Datatypes can get to it easily. */ new DatabaseContextImpl(cm, this); }