private void fromCallback(String msgType, Message msg, SessionID sessionID2) throws RejectLogon, FieldNotFound, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType { // Application exceptions will prevent the incoming sequence number from being incremented // and may result in resend requests and the next startup. This way, a buggy application // can be fixed and then reprocess previously sent messages. // QFJ-572: Behaviour depends on the setting of flag rejectMessageOnUnhandledException. if (MessageUtils.isAdminMessage(msgType)) { application.fromAdmin(msg, sessionID); } else { application.fromApp(msg, sessionID); } }
public boolean isAdmin() { if (header.isSetField(MsgType.FIELD)) { try { final String msgType = header.getString(MsgType.FIELD); return MessageUtils.isAdminMessage(msgType); } catch (final FieldNotFound e) { // shouldn't happen } } return false; }
public boolean isAdmin() { if (header.isSetField(MsgType.FIELD)) { try { final String msgType = header.getString(MsgType.FIELD); return MessageUtils.isAdminMessage(msgType); } catch (final FieldNotFound e) { // shouldn't happen } } return false; }
public boolean isAdmin() { if (header.isSetField(MsgType.FIELD)) { try { final String msgType = header.getString(MsgType.FIELD); return MessageUtils.isAdminMessage(msgType); } catch (final FieldNotFound e) { // shouldn't happen } } return false; }
private void fromCallback(String msgType, Message msg, SessionID sessionID2) throws RejectLogon, FieldNotFound, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType { // Application exceptions will prevent the incoming sequence number from being incremented // and may result in resend requests and the next startup. This way, a buggy application // can be fixed and then reprocess previously sent messages. // QFJ-572: Behaviour depends on the setting of flag rejectMessageOnUnhandledException. if (MessageUtils.isAdminMessage(msgType)) { application.fromAdmin(msg, sessionID); } else { application.fromApp(msg, sessionID); } }
private void fromCallback(String msgType, Message msg, SessionID sessionID2) throws RejectLogon, FieldNotFound, IncorrectDataFormat, IncorrectTagValue, UnsupportedMessageType { // Application exceptions will prevent the incoming sequence number from being incremented // and may result in resend requests and the next startup. This way, a buggy application // can be fixed and then reprocess previously sent messages. // QFJ-572: Behaviour depends on the setting of flag rejectMessageOnUnhandledException. if (MessageUtils.isAdminMessage(msgType)) { application.fromAdmin(msg, sessionID); } else { application.fromApp(msg, sessionID); } }
public Message create(String beginString, String msgType) { MessageFactory messageFactory = messageFactories.get(beginString); if (beginString.equals(BEGINSTRING_FIXT11)) { // The default message factory assumes that only FIX 5.0 will be // used with FIXT 1.1 sessions. A more flexible approach will require // an extension to the QF JNI API. Until then, you will need a custom // message factory if you want to use application messages prior to // FIX 5.0 with a FIXT 1.1 session. // // TODO: how do we support 50/50SP1/50SP2 concurrently? // // If you need to determine admin message category based on a data // dictionary, then use a custom message factory and don't use the // static method used below. if (!MessageUtils.isAdminMessage(msgType)) { messageFactory = messageFactories.get(FIX50); } } if (messageFactory != null) { return messageFactory.create(beginString, msgType); } Message message = new Message(); message.getHeader().setString(MsgType.FIELD, msgType); return message; }
@Override public Message create(String beginString, ApplVerID applVerID, String msgType) { MessageFactory messageFactory = messageFactories.get(beginString); if (beginString.equals(BEGINSTRING_FIXT11) && !MessageUtils.isAdminMessage(msgType)) { if (applVerID == null) { applVerID = new ApplVerID(defaultApplVerID.getValue()); } messageFactory = messageFactories.get(MessageUtils.toBeginString(applVerID)); } if (messageFactory != null) { return messageFactory.create(beginString, applVerID, msgType); } Message message = new Message(); message.getHeader().setString(MsgType.FIELD, msgType); return message; }
@Override public Message create(String beginString, ApplVerID applVerID, String msgType) { MessageFactory messageFactory = messageFactories.get(beginString); if (beginString.equals(BEGINSTRING_FIXT11) && !MessageUtils.isAdminMessage(msgType)) { if (applVerID == null) { applVerID = new ApplVerID(defaultApplVerID.getValue()); } messageFactory = messageFactories.get(MessageUtils.toBeginString(applVerID)); } if (messageFactory != null) { return messageFactory.create(beginString, applVerID, msgType); } Message message = new Message(); message.getHeader().setString(MsgType.FIELD, msgType); return message; }
final DataDictionary payloadDictionary = MessageUtils.isAdminMessage(msgType) ? sessionDataDictionary : applicationDataDictionary;
final DataDictionary payloadDictionary = MessageUtils.isAdminMessage(msgType) ? sessionDataDictionary : applicationDataDictionary;
final DataDictionary payloadDictionary = MessageUtils.isAdminMessage(msgType) ? sessionDataDictionary : applicationDataDictionary;
if (MessageUtils.isAdminMessage(msgType) && !forceResendWhenCorruptedStore) { if (begin == 0) { begin = msgSeqNum;
if (MessageUtils.isAdminMessage(msgType) && !forceResendWhenCorruptedStore) { if (begin == 0) { begin = msgSeqNum;
if (MessageUtils.isAdminMessage(msgType) && !forceResendWhenCorruptedStore) { if (begin == 0) { begin = msgSeqNum;
.isAdminMessage(msgType) ? dataDictionaryProvider .getSessionDataDictionary(beginString) : dataDictionaryProvider .getApplicationDataDictionary(applVerID); return; if (!(MessageUtils.isAdminMessage(msgType)) && (sessionBeginString.compareTo(FixVersions.BEGINSTRING_FIX42) >= 0)) { generateBusinessReject(message, BusinessRejectReason.APPLICATION_NOT_AVAILABLE,
.isAdminMessage(msgType) ? dataDictionaryProvider .getSessionDataDictionary(beginString) : dataDictionaryProvider .getApplicationDataDictionary(applVerID); return; if (!(MessageUtils.isAdminMessage(msgType)) && (sessionBeginString.compareTo(FixVersions.BEGINSTRING_FIX42) >= 0)) { generateBusinessReject(message, BusinessRejectReason.APPLICATION_NOT_AVAILABLE,
.isAdminMessage(msgType) ? dataDictionaryProvider .getSessionDataDictionary(beginString) : dataDictionaryProvider .getApplicationDataDictionary(applVerID); return; if (!(MessageUtils.isAdminMessage(msgType)) && (sessionBeginString.compareTo(FixVersions.BEGINSTRING_FIX42) >= 0)) { generateBusinessReject(message, BusinessRejectReason.APPLICATION_NOT_AVAILABLE,