|
From: Christoph J. <chr...@ma...> - 2021-05-19 12:32:51
|
Every connector (i.e. acceptor or initiator) has a method "getManagedSessions()" which returns a list of SessionIDs managed by that connector. You can lookup the session by using Session.lookupSession(SessionID). Chris. On 18.05.21 14:55, 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 -- 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 |