Re: [Quickfix-developers] starting/stopping a session?
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2004-12-16 18:26:14
|
Yeah, I guess we didn't ever visualize anyone would care what particular acceptor a session might come from. But I suppose it makes sense if you are categorizing different session types in this manner. So yeah this isn't supported right now, but it certainly makes sense to have. --oren ----- Original Message ----- From: "Andrew Munn" <an...@nm...> To: <qui...@li...> Sent: Wednesday, December 15, 2004 8:27 PM Subject: [Quickfix-developers] starting/stopping a session? > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ > QuickFIX Support: http://www.quickfixengine.org/services.html > > I have a java application which does the required > System.loadLibrary("quickfix_jni"), then creates several > ThreadedSocketInitiator and ThreadedSocketAcceptor objects. In the config > files for these initiators and acceptors I specify multiple [SESSION] > blocks with unique SenderCompID and targetCompID. > > I can do this... > > quickfix.Session s = Session.lookupSession(id); > > but it would be nice if I could do this... > > quickfix.Session s = Session.lookupSession(id); > quickfix.SessionID sid = s.getSessionID(); > > and this... > > quickfix.Session[] sessions = Session.getSessions(); > > and this... > > acceptor = new ThreadedSocketAcceptor( > application, > messageStoreFactory, > settings, > logFactory, > messageFactory); > > quickfix.Session[] sessions = acceptor.getSessions(); > sessions[0].stop(); > > it would also be nice if the Session(static) and Session(specific to one > FIX Session) objects returned an iterator over all the unique sessions > they control. > > Currently, I can only get a reference to the individual FIX session > objects which have been instantiated if I create a SessionID equal to that > session's, then pass that SessionID into the lookupSession method. I > have to parse the config files to get those strings. I have > multiple acceptors and initiators and I have no way of knowing which > sessions belong to which acceptor/initiator without refering to the > config files. Is that right? > > -Andrew > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |