[Quickfix-users] FIX session creation/shutdown tracking
Brought to you by:
orenmnero
From: Drazen D. <de...@se...> - 2008-02-13 15:48:47
|
Hi, I am a bit puzzled that QuickFix does not have the mechanism to signal the creation/shutdown of the FIX session. Alternatively there is something, but I haven't figured it out. IIUC, onCreate is called every time the app starts up, for each of the *QuickFix* sessions configured in the settings file. At the same time, for each of the QuickFix sessions, I am allowed to configure the start/end time, so the QuickFix engine does know when and how to create a new FIX session. By the way, it doesn't help that two different things are called sessions :( Anyway, since I am using my own MessageStore implementation, am I right assuming that QuickFix will create a new FIX session some time after it calls _reset_ method on the MessageStore? It appears to me that FIX session creation/shutdown warrants its own onSessionStart/onSessionEnd callbacks, much like onLogon/onLogout are done (even though one can and in fact I do use fromAdmin to check if the message is Logon and then act on it, thus theoretically onLogon/onLogout isn't really needed). Is it preferable to manually track the FIX session via onLogon/onLogout + a bit more code to save the date/time and deduce if I am in a new FIX session? Which mechanism would you suggest? Thanks in advance, Drazen |