|
From: Colin D. <co...@ma...> - 2021-05-18 16:10:19
|
So, I'll resist the urge to question sending quote requests to counter-parties that haven't requested them. I don't believe there is a way to find all active sessions within the QFJ library, though that seems to me to be a reasonable static method to have on Session, similar to Session.lookupSession, Session.doesSessionExist, and Session.numSessions. Luckily, it would be very easy to keep an in-memory collection of sessions simply by tracking login and logout calls in Application. I don't think looking up in the DB would be as efficient, but, you could certainly do that if you also checked Session.lookupSession or Session.doesSessionExist before sending the update. On 5/18/21 5:55 AM, Ajit Gautam wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > > Hi, > > I have Quickfix FIX acceptor and below is the scenario: > > I receive a Quote request message from a client and need to send a > Quote response message to a specific client as well as broadcast a > message to all active sessions. > > I was thinking of creating a method SendToAllActiveSessions and inside > using SendToTarget method passing active sessionID object parameters. > I was wondering whether I can create a global variable to store all > active sessions and pass it to the SendToTarget method inside > SendToAllActiveSessions or should I store the active sessionIds in > database and put lookup logic for active Session Ids in the method. > > > Regards > Ajit Gautam > > > > _______________________________________________ > 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 https://www.marketcetera.com |