private void destroy(DatabaseSession session) { if (session.isConnected()) { session.logout(); } sessions.remove(session.getName()); session = null; }
private void destroy(Session session) { try { if (session.isConnected()) { ((DatabaseSession) session).logout(); } } catch (Throwable ignore) { // EL Bug 321843 - Must handle errors from logout. LOG.logThrowable(SessionLog.WARNING, AbstractSessionLog.CONNECTION, ignore); } sessions.remove(session.getName()); session = null; }
private void destroy(Session session) { try { if (session.isConnected()) { ((DatabaseSession) session).logout(); } } catch (Throwable ignore) { // EL Bug 321843 - Must handle errors from logout. LOG.logThrowable(SessionLog.WARNING, AbstractSessionLog.CONNECTION, ignore); } sessions.remove(session.getName()); session = null; }
/** * <p>INTERNAL: */ protected void logoutSessions() { SessionManager manager = SessionManager.getManager(); @SuppressWarnings("rawtypes") Map sessions = manager.getSessions(); String orSessionName = xrService.name + DASH_STR + DBWS_OR_SESSION_NAME_SUFFIX; Session orSession = (Session)sessions.remove(orSessionName); if (orSession != null && orSession.isConnected()) { ((DatabaseSession)orSession).logout(); } String oxSessionName = xrService.name + DASH_STR + DBWS_OX_SESSION_NAME_SUFFIX; sessions.remove(oxSessionName); xrService.orSession = null; xrService.oxSession = null; }
/** * <p>INTERNAL: */ protected void logoutSessions() { SessionManager manager = SessionManager.getManager(); @SuppressWarnings("rawtypes") Map sessions = manager.getSessions(); String orSessionName = xrService.name + DASH_STR + DBWS_OR_SESSION_NAME_SUFFIX; Session orSession = (Session)sessions.remove(orSessionName); if (orSession != null && orSession.isConnected()) { ((DatabaseSession)orSession).logout(); } String oxSessionName = xrService.name + DASH_STR + DBWS_OX_SESSION_NAME_SUFFIX; sessions.remove(oxSessionName); xrService.orSession = null; xrService.oxSession = null; }
((DatabaseSession)session).logout(); } catch (Throwable ignore) { LOG.logThrowable(SessionLog.WARNING, AbstractSessionLog.CONNECTION, ignore);
((DatabaseSession)session).logout(); } catch (Throwable ignore) { AbstractSessionLog.getLog().logThrowable(SessionLog.WARNING, ignore);
((DatabaseSession)session).logout(); } catch (Throwable ignore) { LOG.logThrowable(SessionLog.WARNING, AbstractSessionLog.CONNECTION, ignore);