RE: [Quickfix-developers] QuickFix (Java) does not logon?
Brought to you by:
orenmnero
From: <OM...@th...> - 2002-12-13 18:44:25
|
Oh. :). Yeah, we use a tool called doxygen (http://www.stack.nl/~dimitri/doxygen/index.html). You can find the documentation under the quickfix/doc/html/index.html or you can just go here (http://quickfix.thoughtworks.com/documentation/index.html). --oren "Alvin Wang" <xwang@qtechservi To: <OM...@th...> ces.com> cc: <qui...@li...>, <qui...@li...> 12/13/2002 12:32 Subject: RE: [Quickfix-developers] QuickFix (Java) does not logon? PM Oren, thanks again. What I meant is that, do you have some documentations regarding quickfix configuration and setup. Do you have Java Doc? -----Original Message----- From: qui...@li... [mailto:qui...@li...]On Behalf Of OM...@th... Sent: Friday, December 13, 2002 1:10 PM To: xw...@qt... Cc: qui...@li...; qui...@li... Subject: RE: [Quickfix-developers] QuickFix (Java) does not logon? Alvin, You will need to get the session duration from your counterparty. It is usually documented in the FIX specification they provide you with. If not, you may need to call them and ask at what time they reset their FIX sessions. You should then set your StartTime and EndTime in your [SESSION] section to match the times they give you. It is likely that the session times they provide you with will be in their local time zone, you will need to convert these to GMT. StartTime is the time a session begins and they reset their sequence numbers to 1. EndTime is when the session is over and they no longer will accept new messages. Most counterparties also require synchronization to an atomic clock. This ensures the time on their machine is the same as the time on yours. There are many free software packages that will do this for you. Here is a good resource for software that does this (http://www.eecis.udel.edu/~ntp/software/index.html). --oren "Alvin Wang" <xwang@qtechservi To: <OM...@th...> ces.com> cc: <qui...@li...>, <qui...@li...> 12/13/2002 11:51 Subject: RE: [Quickfix-developers] QuickFix (Java) does not logon? AM Oren, thanks so much for these info. Could you tell me where I can find these kind of details? thanks! Alvin -----Original Message----- From: OM...@th... [mailto:OM...@th...] Sent: Friday, December 13, 2002 12:15 PM To: xw...@qt... Cc: gar...@su...; qui...@li...; qui...@li... Subject: RE: [Quickfix-developers] QuickFix (Java) does not logon? Alvin. Are you using one of the log factories? QuickFIX is silent unless you have a log factory that can help you diagnose what is happening internally. Anyway, it sounds like your sequence numbers are not being reset at the correct time. Things you may want to look at are what time the counterparty resets their sequence numbers, if your session time reflects that, is your clock synchronized with your counterparty, and are you keeping in mind that the Session start and End times are in GMT not localtime. --oren "Alvin Wang" <xwang@qtechservi To: <gar...@su...> ces.com> cc: <OM...@th...>, <qui...@li...>, <qui...@li...> 12/13/2002 09:30 Subject: RE: [Quickfix-developers] QuickFix (Java) does not logon? AM Gary, thanks for the info. However, I am doing exactly same thing as your are. But it just hangs there unless i clear the store folder manully. thanks! -----Original Message----- From: qui...@li... [mailto:qui...@li...]On Behalf Of gar...@su... Sent: Friday, December 13, 2002 10:17 AM To: Alvin Wang Cc: OM...@th...; qui...@li...; qui...@li... Subject: Re: [Quickfix-developers] QuickFix (Java) does not logon? As a hint, I know I needed to call the initiator.start() in a separate Thread. I think the start() does block. Here's my method to kick off the FIX engine: protected void initializeFIX() { Thread fixThread = new Thread ("FIX Initialization thread") { public void run() { try { String fixCfg = QFEProperties.getFixCfg(); LogUtil.log ("Initializing FIX engine based on configuration: " + fixCfg); Application application = new Application(); Settings settings = new Settings(QFEInitiator.class.getClassLoader(). getResourceAsStream (fixCfg)); MessageStoreFactory messageStoreFactory = new FileStoreFactory(settings); LogFactory logFactory = new ScreenLogFactory(true, true, true); MessageFactory messageFactory = new DefaultMessageFactory(); initiator = new SocketInitiator (application, messageStoreFactory, settings, logFactory, messageFactory); initiator.start(); } catch(ConfigError e) { LogUtil.handleException (LogUtil.SEVERITY_LEVEL_3, "Exception occurred initializing FIX engine", e); throw new PMFatalException ("Exception occurred initializing FIX engine: " + e.getMessage()); } } }; fixThread.start(); } Gary Mui Prescient Markets, Inc 914-989-3118 (W) 445 Hamilton Avenue 914-422-3693 (F) White Plains, NY 10601 Please visit us at http://www.cpmarket.com "Alvin Wang" <xw...@qt...> To: <OM...@th...>, Sent by: <qui...@li...> qui...@li...urc cc: eforge.net Subject: [Quickfix-developers] QuickFix (Java) does not logon? 12/13/02 10:06 AM Hi! Sometimes, when I start a session, quickfix can print out "Create session", but it does not send out logon message and so cannot logon. I guess it has something to do with store state, since I can fix this problem if I delete all the related files in store folder. Also if I use debugger to step through, I think initiator.start() statement hangs. Please advise. thanks! Alvin ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |