|
From: Christoph J. <chr...@ma...> - 2021-04-12 23:17:11
|
Hi, QFJ will reset the sequence number on the start of the session when it finds that the session storage is from an old session. It does determine this by using the StartTime and EndTime. See DefaultSessionSchedule.isSameSession(). So I can only encourage you to unify the TimeZone, StartTime, EndTime with your counterparty because that will do everything automatically for you. From my experience with the counterparties I've worked with this is no problem and some of them use a different time zone than our servers are in. If you still want to manage all that by yourself (not recommended), you could set NonStopSession=Y which will never reset the session automatically. You'll then need to have some kind of persistent flag in your application to determine if you already reset your session that day. Cheers, Chris. On 13.04.21 01:03, Felipe Windmoller wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > > Hello everybody! > > I must connect to a session on a daily basis and at the beginning of every new session, I must > start with sequence number 1. > > I'm afraid of using the StartTime and EndTime parameters because there can be issues between the > time zone configuration of my server and the acceptor. So, I intend to do a manual schedule to > logon and logout. > > As my application can be restarted during the day by the server, I can't use the /ResetOnLogon/ or > the other /ResetOn/ parameters. > > I tested QuickFIX/J and it looks like that every time that I start a session and the date of the > session storage is older than the current day (in other words, the first logon of the day), > QuickFIX/J is automatically setting the sequence number to 1. > > Did I understand that correctly? Will QuickFIX/J always begin the first daily session with the > sequence number 1? > > Thanks a lot, > Felipe Henrique Gross Windmoller > > > > > > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users -- Christoph John Software Engineering T +49 241 557080-28 chr...@ma... MACD GmbH Oppenhoffallee 103 52066 Aachen, Germany www.macd.com Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald |