<div dir="ltr"><div class="gmail_default" style="font-size:small;color:#000000">The message store is not appropriate for such a purpose.</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">You'll need to implement your own persistent store if you are worried about application crashes.</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000">Furthermore, you should never manually send a ResendRequest; this is basically lying to the counterparty, telling them there was a transmission problem when there actually wasn't.  The engine will send a ResendRequest when necessary; the application logic should not.</div><div class="gmail_default" style="font-size:small;color:#000000"><br></div><div class="gmail_default" style="font-size:small;color:#000000"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 26, 2014 at 9:51 AM, Selvaraj, Karthik (London) <span dir="ltr"><<a href="mailto:Karthik.Selvaraj@man.com" target="_blank">Karthik.Selvaraj@man.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal">Hi Grant / Mike,<u></u><u></u></p><p class="MsoNormal">   May I know the best way to request the messages from the QuickFix Message store from a specific sequence number? Is it possible?<u></u><u></u></p><p class="MsoNormal">Scenario is as follows:  <u></u><u></u></p><p class="MsoNormal">   I process the messages by placing them in a queue (that means the handler can return quickly). <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">>>>>>>>>>>>>>>>>><u></u> <u></u></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">  </span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">public</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">void</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"> OnMessage(QuickFix.FIX42.</span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">NewOrderSingle</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"> order, </span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">SessionID</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"> sessionId)<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">        {<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">            _queue.EnqueueTask(() => ProcessBrokerOrder(order));<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">            <u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">        }<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"><u></u> <u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">        </span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">public</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"> </span><span style="font-size:9.5pt;font-family:Consolas;color:blue;background:white">void</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"> OnMessage(QuickFix.FIX42.</span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">ExecutionReport</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"> executionReport, </span><span style="font-size:9.5pt;font-family:Consolas;color:#2b91af;background:white">SessionID</span><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white"> sessionId)<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">        {<u></u><u></u></span></p><p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">            _queue.EnqueueTask(() => ProcessBrokerFill(executionReport));<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black;background:white">        }</span><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"><<<<<<<<<<<<<<<<<<<<u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas;color:black"><u></u> <u></u></span></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Say  if my local queue has 1000 messages (yet to be processed by my application) but if the application crashes, QuickFix Sequence number should be alright and its message store too. <u></u><u></u></p><p class="MsoNormal">The application still need to process the lost messages. The application might know the last successfully processed message’s sequence number. <u></u><u></u></p><p class="MsoNormal">So what would be the best way to re-request the messages that aren’t processed by the application?<u></u><u></u></p><p class="MsoNormal">Is there a way to read the message store without using the resend request? <u></u><u></u></p><p class="MsoNormal">If resend request needs to be used – May I know whether the sequence number should be set back to the required seq no first and then issue the resend request?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal">Karthik<u></u><u></u></p></div><p align="justify"><font color="#666666" face="arial,helvetica,sans-serif"><font size="1"><font color="#999999">This email has been sent by a member of the Man group (“Man”). Man’s parent company, Man Group plc, is registered in England and Wales (company number 08172396) at Riverbank House, 2 Swan  Lane, London, EC4R 3AD.<br>The contents of this email are for the named addressee(s) only. It contains information which may be confidential and privileged. If you are not the intended recipient, please notify the sender immediately, destroy this email and any attachments and do not otherwise disclose or use them. Email transmission is not a secure method of communication and Man cannot accept responsibility for the completeness or accuracy of this email or any attachments. Whilst Man makes every effort to keep its network free from viruses, it does not accept responsibility for any computer virus which might be transferred by way of this email or any attachments. This email does not constitute a request, offer, recommendation or solicitation of any kind to buy, subscribe, sell or redeem any investment instruments or to perform other such transactions of any kind. Man reserves the right to monitor, record and retain all electronic and telephone communications through its network in accordance with applicable laws and regulations.</font> <font color="#cccccc">--UwQe9f5k7pI3vplngP</font></font></font></p>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div><font><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font><font color="#3333ff"><br></font></font></div><div><font><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font><b>Made-To-Measure Trading Solutions.</b></font></div><div><font>Exactly what you need. No more. No less.</font><font><b><font color="#3333ff"><br></font></b></font></div><div><font><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div></div>
</div>