Re: [Quickfix-users] Incorrect Data Format aka possDupFlag issue
Brought to you by:
orenmnero
From: Mike G. <mg...@co...> - 2013-07-10 16:32:49
|
On Tue, Jul 9, 2013 at 2:45 AM, aupadras <ani...@ya...> wrote: > initiator.start(); > application.run(); > initiator.stop(); > As soon as application.run() returns, initiator.stop() is going to be called. Does application.run() loop forever? It probably should if you want this to work correctly. Finally, I don't recall of seeing the print statement outputs in onMessage > or fromAPP block. I do see some action from toAPP (when message is sent to > target), but never seen from fromAPP or onMessages. Do I need to call > fromAPP and onMessages(Execution Reports) in my application whereas toAPP > is > called by default by QF when message is being sent to target ??? > Quickfix invokes fromApp, toApp, toAdmin, and fromAdmin. You should not call those yourself. Quickfix does not call the onMessage() callbacks -- those are there for convenience, and if you want to use them you have to call crack() during fromApp(). If you have not done so, please look at the example applications that are included with the Quickfix source code. They demonstrate the correct way to do most of what you are asking about. And if you haven't read the docs on the site yet, they also address this: http://quickfixengine.org/quickfix/doc/html/application.html http://quickfixengine.org/quickfix/doc/html/receiving_messages.html -- Mike Gatny Connamara Systems, LLC |