[Quickfix-developers] COM question
Brought to you by:
orenmnero
From: Michael R. <mr...@li...> - 2004-12-16 17:35:43
|
There is this if(FAILED(CoInitialize(NULL))) throw ConfigError("Could not initialize COM"); in MSXML_DOMDocument ctor quickFix being a multithreaded app, it seems this should have been CoInitializeEx(NULL, COINIT_MULTITHREADED)... Reason I am asking - have a multithreaded COM app and this throws an exception :( Michael -----Original Message----- From: Andrew Munn [mailto:an...@nm...] Sent: Wednesday, December 15, 2004 9:27 PM To: qui...@li... 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 This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. |