private void sendMessage(SessionID sessionID, Message message) { try { Session session = Session.lookupSession(sessionID); if (session == null) { throw new SessionNotFound(sessionID.toString()); } DataDictionaryProvider dataDictionaryProvider = session.getDataDictionaryProvider(); if (dataDictionaryProvider != null) { try { dataDictionaryProvider.getApplicationDataDictionary( getApplVerID(session, message)).validate(message, true); } catch (Exception e) { LogUtil.logThrowable(sessionID, "Outgoing message failed validation: " + e.getMessage(), e); return; } } session.send(message); } catch (SessionNotFound e) { log.error(e.getMessage(), e); } }
.getSessionDataDictionary(beginString); final DataDictionary applicationDataDictionary = ddProvider == null ? null : ddProvider .getApplicationDataDictionary(applVerID);
.getSessionDataDictionary(beginString); final DataDictionary applicationDataDictionary = ddProvider == null ? null : ddProvider .getApplicationDataDictionary(applVerID);
.getSessionDataDictionary(beginString); final DataDictionary applicationDataDictionary = ddProvider == null ? null : ddProvider .getApplicationDataDictionary(applVerID);
.isAdminMessage(msgType) ? dataDictionaryProvider .getSessionDataDictionary(beginString) : dataDictionaryProvider .getApplicationDataDictionary(applVerID);
.isAdminMessage(msgType) ? dataDictionaryProvider .getSessionDataDictionary(beginString) : dataDictionaryProvider .getApplicationDataDictionary(applVerID);
.isAdminMessage(msgType) ? dataDictionaryProvider .getSessionDataDictionary(beginString) : dataDictionaryProvider .getApplicationDataDictionary(applVerID);