[Quickfix-developers] Quickfix/J: AbstractSocketInitiator issues
Brought to you by:
orenmnero
|
From: Shepheard, T. (London) <Tob...@ml...> - 2005-11-10 14:42:23
|
I'm using the latest version of Quickfix/J from CVS. I've just been switching my applications from an Acceptor to an Initiator and came across an issue with the Initiator code. The isLoggedOn and getSessions methods both use the quickfixSessions HashMap object. However, this HashMap is never populated - the AbstractSocketAcceptor populates it's version in the initialize method (first checking that the connectionType is an acceptor), but the AbstractSocketInitiator never does. As a result isLoggedOn will always return false, getSesssions an empty list, and there's no public way to get the current session status from the socket initiator. Is there some other way I can check to see the current login status from the SocketInitiator object (e.g. loginSent, loginReceived etc) for any active session? Should the quickfixSessions hashmap even exist in an Initiator, or should there be a single Session object which should be made avaialble via an accessor method? Or am I abusing all of this in some way and should I take a different approach? :) Many thanks, Toby -------------------------------------------------------- If you are not an intended recipient of this e-mail, please notify the = sender, delete it and do not read, act upon, print, disclose, copy, = retain or redistribute it. Click here for important additional terms = relating to this e-mail. http://www.ml.com/email_terms/ -------------------------------------------------------- |