private ILogon connectSession() throws CommunicationException, ConnectionException { ILogon newLogon = this.serverInstance.getService(ILogon.class); if (this.logonResult != null) { try { newLogon.assertIdentity(logonResult.getSessionToken()); } catch (TeiidException e) { // session is no longer valid disconnect(); } } if (this.logonResult == null) { try { logon(newLogon); } catch (LogonException e) { // Propagate the original message as it contains the message we want // to give to the user throw new ConnectionException(e); } catch (TeiidComponentException e) { if (e.getCause() instanceof CommunicationException) { throw (CommunicationException)e.getCause(); } throw new CommunicationException(JDBCPlugin.Event.TEIID20018, e, JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20018)); } } return newLogon; }
private ILogon connectSession() throws CommunicationException, ConnectionException { ILogon newLogon = this.serverInstance.getService(ILogon.class); if (this.logonResult != null) { try { newLogon.assertIdentity(logonResult.getSessionToken()); } catch (TeiidException e) { // session is no longer valid disconnect(); } } if (this.logonResult == null) { try { logon(newLogon); } catch (LogonException e) { // Propagate the original message as it contains the message we want // to give to the user throw new ConnectionException(e); } catch (TeiidComponentException e) { if (e.getCause() instanceof CommunicationException) { throw (CommunicationException)e.getCause(); } throw new CommunicationException(JDBCPlugin.Event.TEIID20018, e, JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20018)); } } return newLogon; }