[Quickfix-developers] QuickFIXj multiple session
Brought to you by:
orenmnero
|
From: Steve <spi...@tr...> - 2007-03-08 16:30:08
|
We have developed using QuickFIXj. We have 2 sessions 1) an order session, orders and execution information send and received 2) a price session, for market price feed We have set it up to run 2 different ways. scenario 1) created 2 classes that implement Application class and 2 SocketInitiators. scenario 2) added 2 sessions to the config.cfg file and created 1 class that implements Application class and 1 SocketInitiator. With scenario 1 the fromApp method in each Application class receives messages for the specific session connected. With scenario 2 it is necessary to check the session the message came from. Have most developers set it up like scenario 2? Does anyone have any suggestions as to the best way to do this? Steve Pickering spi...@tm... |