Re: [Quickfix-developers] Starting QuickFix Engine
Brought to you by:
orenmnero
|
From: Joerg T. <Joe...@ma...> - 2006-03-14 14:19:10
|
Nick Volpe wrote:
> I'm using QF 1.11.0 for Java and FIX 4.2 and have a (simple?) question=20
> related to starting the QF engine. In my code I create an instance of=20
> SocketInitiator and then call the start() method to start the QF engine=
. I=20
> want to be able to keep trying to start the engine periodically in the=20
> event that the acceptor I'm trying to connect to isn't available. What=
is=20
> the best way to achieve this? Should I simply wrap this method call in=
a=20
> loop that periodically calls the start() method until the isLoggedOn()=20
> method returns true? Or are there some configuration options available=
=20
> that I can set to specify how many times to try and start the engine an=
d=20
> the period between each attempt?
This is handled by the Session automatically. The config option "Reconnec=
tInterval" with=20
the default 30 seconds specifies the time between connection attempts.
The StartTime and EndTime tell the time of the day when the engine should=
start to connect=20
and stop to connect.
So you should not do this yourself.
Cheers, J=F6rg
--=20
Joerg Thoennes
http://macd.com
Tel.: +49 (0)241 44597-24 Macdonald Associates GmbH
Fax : +49 (0)241 44597-10 Lothringer Str. 52, D-52070 Aachen
|