|
From: Toli K. <to...@ma...> - 2007-04-24 07:18:10
|
Stacy, I may be mistaken, but I think all heartbeat exchange happens behind the scenes automatically. Once you log on to your FIX acceptor and they exchange login messages, each side sends heartbeats to each other automatically. if that's not enough for yo, you can try sending a heartbeat in the onLogon() method in your FIX Application subclass as well. for example, when our Marketcetera OMS connects to the FIX exchange simulator (essentially the ordermatcher in the quickfixj examples directory), the simulator sends a heartbeat to OMS after logon, and the OMS replies. and it's the underlying QFJ layer that handles all of that, we didn't have to add any code to setup heartbeat exchange, aside from having the default HeartBtInt=30 value setup in the config file (ours is done in Spring but it's the same idea): http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/oms/src/main/resources/quickfixj.xml hope this helps. On 4/23/07, stacyann_1 <sta...@gs...> wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > Sorry for the newbie question, but just wondering how to go about this. > Before I start receiving ExecutionReport messages, I need to send a message > of form Heartbeat (35=0). My main uses initiator: > SessionSettings settings = new > SessionSettings("c:\\quickfix\\settings.cfg"); > LOGGER.log(Level.WARNING, > settings.getDefaultProperties().toString() ); > MessageStoreFactory storeFactory = new FileStoreFactory( > settings); > MessageFactory messageFactory = new DefaultMessageFactory(); > Initiator initiator = new SocketInitiator > (listener, storeFactory, settings, messageFactory); > initiator.start(); > > Should I put the send of the Heartbeat message in "onCreate" in my class > that implements Application? > > Thanks, > Stacy > -- > View this message in context: http://www.nabble.com/Sending-a-Heartbeat-tf3635037.html#a10150311 > Sent from the QuickFIX/J mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. |