Re: [Quickfix-developers] How to Collect Rejected Message Details
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2004-08-04 14:28:04
|
Yeah, that method is inactive right now. It is going to be either removed or replaced. The problem is the method as written doesn't translate well between C++ and a garbage collected language (no pointer references). Instead you should use the get method that takes in two integers and an ArrayList. Just set the begin and end of the range to be the same sequence number. --oren On Aug 4, 2004, at 8:31 AM, Ramprakash Umapathy wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX FAQ: http://www.quickfixengine.org/quickfix/doc/html/FAQ.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi, > > Could anyone explain me how to collect Rejected Message Details? > > 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. > > 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 = > message.getRefSeqNum().getValue() > > LogManager.Publish(, ServiceControl.UserName, "Rejected > Message > Number", iRefSeqNo, LogInformationType.LogLevelInformation, > ServiceControl.UserInfo) > > Dim oQFMsgStores As QuickFix.MessageStore = > Session.lookupSession(sessionID).getStore() > > Dim bResult As Boolean > Dim MessageFromStores As String > > bResult = 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 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source > Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |