1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
<B><CODE><PRE>
import quickfix.*;
import quickfix.field.*;
public void fromApp(Message message, SessionID sessionID)
throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
crack(message, sessionID);
}
public void onMessage( quickfix.fix42.NewOrderSingle message, SessionID sessionID )
throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
ClOrdID clOrdID = new ClOrdID();
message.get(clOrdID);
ClearingAccount clearingAccount = new ClearingAccount();
message.get(clearingAccount);
}
public void onMessage( quickfix.fix42.OrderCancelRequest message, SessionID sessionID )
throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {
ClOrdID clOrdID = new ClOrdID();
message.get(clOrdID);
</B>// compile time error!! field not defined for OrderCancelRequest<B>
ClearingAccount clearingAccount = new ClearingAccount();
message.get(clearingAccount);
}
</PRE></CODE></B>
|