public ResultsFuture<?> logoff() throws InvalidSessionException { DQPWorkContext workContext = DQPWorkContext.getWorkContext(); this.service.closeSession(workContext.getSessionId()); workContext.getSession().setSessionId(null); workContext.getSession().getSessionVariables().clear(); return ResultsFuture.NULL_FUTURE; }
@Override public void disconnected() { if (workContext.getSessionId() != null) { workContext.runInContext( new Runnable() { @Override public void run() { try { csr.getClientService(ILogon.class).logoff(); } catch (Exception e) { LogManager.logDetail( LogConstants.CTX_TRANSPORT, e, "Exception closing client instance"); //$NON-NLS-1$ } } }); } }