|
From: Colin D. <co...@ma...> - 2018-09-28 12:55:49
|
Note that, usually, you'll arrange with the counter parties when to reset the session. QFJ will reset the sequence number automatically at the start of the session. I have rarely (ever?) had to explicitly set 141 on messages and usually the counters don't appreciate it and might not even respect it. On 09/27/2018 06:59 PM, Ross Yakulis wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > > > Good point I will try that. I missed that. Just starting out on Fix > and learning. > > >> On Sep 27, 2018, at 11:40 AM, Colin DuPlantis <co...@ma... >> <mailto:co...@ma...>> wrote: >> >> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >> QuickFIX/J Support: http://www.quickfixj.org/support/ >> >> >> I'm not sure what you're responding to, but, you can accomplish this >> more easily through configuration: >> >> /ResetOnLogon/ Determines if sequence numbers should be reset before >> sending/receiving a logon request. Y >> N N >> /ResetOnLogout/ Determines if sequence numbers should be reset to 1 >> after a normal logout termination. Y >> N N >> /ResetOnDisconnect/ Determines if sequence numbers should be reset >> to 1 after an abnormal termination. Y >> N N >> /ResetOnError/ Session setting for doing an automatic reset when an >> error occurs. A reset means disconnect, sequence numbers reset, store >> cleaned and reconnect, as for a daily reset. Y >> N N >> >> >> On 09/27/2018 11:15 AM, yakulis wrote: >>> QuickFIX/J Documentation:http://www.quickfixj.org/documentation/ >>> QuickFIX/J Support:http://www.quickfixj.org/support/ >>> >>> >>> I found this worked. >>> >>> public void toAdmin(Message message, SessionID sessionID) { >>> log.debug("Admin Message to FixEngine -> " + >>> getMessageTypeString(message)); >>> logMessage(message); >>> MsgType messageType = getMessageType(message); >>> >>> if (messageType.valueEquals(MsgType.LOGON)) { >>> log.debug("Logon, setting reset sequence flag"); >>> message.setField(new ResetSeqNumFlag(true)); >>> logMessage(message); >>> } else if (messageType.valueEquals(MsgType.HEARTBEAT)) { >>> >>> >>> >>> >>> -- >>> Sent from:http://quickfix-j.364392.n2.nabble.com/ >>> >>> >>> _______________________________________________ >>> Quickfixj-users mailing list >>> Qui...@li... >>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >> >> -- >> Colin DuPlantis >> Chief Architect, Marketcetera >> Download, Run, Trade >> 888.868.4884 +1.541.306.6556 >> http://www.marketcetera.org >> _______________________________________________ >> Quickfixj-users mailing list >> Qui...@li... >> <mailto:Qui...@li...> >> https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > > NOTICE: This communication may contain information that is privileged > or confidential. It may be read and used solely by the intended > recipient(s), and any review, use or distribution by others is > STRICTLY PROHIBITED. If you are not the intended recipient, you are > prohibited from disclosing, copying, distributing or using any of this > information. If you received this communication in error, please > contact the sender immediately and destroy the material in its > entirety, whether electronic or hard copy. No assurance is given that > this e-mail or any attachments are free of viruses or other harmful code. > > > > > > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users |