[Quickfix-developers] How to Collect Rejected Message Details
Brought to you by:
orenmnero
From: Ramprakash U. <ram...@ca...> - 2004-08-04 13:32:13
|
Hi, Could anyone explain me how to collect Rejected Message Details?=20 Presently I'm tring to pass RefSeqNum to MessageStore object and trying = to retrieve the Message as String. This approach does n't seems to be = working.=20 My Message String retrieved from MessageStore.Get(iMessageNo, MessagetobeRetrieved) is always Nothing (null). Why is it so? I appreciate your help, I use QF1.8.0/VB.NET/Microsoft.NET 1.1 Here is my code, Public Overloads Overrides Sub onMessage(ByVal message As QuickFix41.Reject, ByVal sessionID As QuickFix.SessionID) Try 'First Get RefSeqNum Tag 45 to get the Reject Message SeqNum Dim iRefSeqNo As Integer =3D = message.getRefSeqNum().getValue() LogManager.Publish(, ServiceControl.UserName, "Rejected = Message Number", iRefSeqNo, LogInformationType.LogLevelInformation, ServiceControl.UserInfo) Dim oQFMsgStores As QuickFix.MessageStore =3D Session.lookupSession(sessionID).getStore() Dim bResult As Boolean Dim MessageFromStores As String bResult =3D oQFMsgStores.get(iRefSeqNo, MessageFromStores) = '<---- MessageFromStores does not contain the message string Catch e As System.Exception LogManager.Publish(e, ServiceControl.UserName, "QuickFix41.Reject", , , ServiceControl.UserInfo) Finally End Try End Sub Regards, Ramprakash |