Re: [Quickfix-developers] Just Starting...
Brought to you by:
orenmnero
From: azmat <mr...@gm...> - 2008-01-17 20:56:19
|
Actually, I figured out the first part. fromApp, call crack...crack distinguishes what type of message it is and calls the appropiate OnMessage that is overridden from MessageCracker...if onMessage for the specific message type is NOT implemented, than an UnsupportedMessageType exception is thrown. So in the onMessage (execution report) I would write the business related code for what I need to do for when/if an executionReport is a type of message that is received, correct? My confusion now lies with sending messages with sendToTarget and its relation to toApp? Should I call sendToTarget from toApp or will it somehow (again) magically end up in toApp? thanks! Azmat Patrick, Thanks! This is perfect. I have something very similar now. I understand that I should call the crack method in the fromApp method so that the MessageCracker can identify exactly what type of message it is. That is really neat. But, what I do not get is how or when is the onMessage method is called (the one that takes the ExecutionReport parameter)? Is this something that automagically happens with the crack method if it determines the message is of type ExecutionReport? Also on the flipside of it. If I call sendToTarget from my business layer will it automatically go to the Application.toApp method OR do I need to somehow call toApp and then call sendToTarget from there? Any help would be much, much appreciated! thanks! Azmat -- View this message in context: http://www.nabble.com/Just-Starting...-tp14811784p14933076.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |