[Quickfix-users] Re-Initialize a FIX session with different SessionSettings without restart of whol
Brought to you by:
orenmnero
From: Krebs R. <ret...@pr...> - 2010-06-07 08:05:39
|
Hi, We are using quickfix/j as initiator to connect to various acceptors. At the start of our FIX application we use one initiator (ThreadedSocketInitiator) to create all our sessions. Is there a possibility to individually stop these sessions in a way that the thread behind the session also dies? We need this functionality because we want to restart a session with different SessionSettings (e.g. session start time/end time) afterwards. So far, we are able to stop a session with the stop() method. The session logs out afterwards but the thread behind the session keeps on living. But we cannot change the SessionSettings of that session. The only thing we can do is end our FIX application and restart it with new SessionSettings. Is it maybe a good idea to have more than one Initiator (e.g. one Initiator per Session) to be able to individually stop and re-initialize this initiator? We have also tried with SocketInitiator (without multi-threading). Problem there is the reduced performance and we still do not have a possibility to end and restart a session with different SessionSettings. The session remains unchangeable until we end the FIX application. Hope someone can help. Cheers, Reto |