# how to reset seq num in Quickfix/J app

**URL:** <https://forum.fixtrading.org/t/how-to-reset-seq-num-in-quickfix-j-app/5014>\
**Category:** General Q&A\
**Tags:** general-qa, xid\_167962, imported\
**Created:** [March 9, 2010, 6:47pm UTC](https://forum.fixtrading.org/t/how-to-reset-seq-num-in-quickfix-j-app/5014 "2010-03-09T18:47:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashwinraj\_x](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@ashwinraj\_x](https://forum.fixtrading.org/u/ashwinraj_x)\
**Post date:** [March 9, 2010, 6:47pm UTC](https://forum.fixtrading.org/t/how-to-reset-seq-num-in-quickfix-j-app/5014/1 "2010-03-09T18:47:09Z")

</div>

Imported from previous forum

---

<div class="post-metadata">

**Author:** ![ashwinraj\_x](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@ashwinraj\_x](https://forum.fixtrading.org/u/ashwinraj_x)\
**Post date:** [March 9, 2010, 6:47pm UTC](https://forum.fixtrading.org/t/how-to-reset-seq-num-in-quickfix-j-app/5014/2 "2010-03-09T18:47:09Z")

</div>

I use the Quickfix/J API for implementing a FIX application. I would like to know how to request a sequence number reset with the other party during the first connection of the day. The need arose when the application did not quit gracefully the previous day, and FIX connectivity experienced a sequence number mismatch. I connect between 8AM and 5PM CST, so this is not a 24x5 or 24x6 connectivity scenario.

The Logon call is implicitly facilitated when I start the (initiator) application. So I am not sure how to programmatically control the characteristics of this Logon message. Should I start by intercepting the outgoing Logon message in the fromAdmin() method, and somehow perform a message exchange from there to correctly reset the sequence number?

Thanks!

---

<div class="post-metadata">

**Author:** ![fplpo\_x](https://avatars.discourse-cdn.com/v4/letter/f/7ab992/32.png) [@fplpo\_x](https://forum.fixtrading.org/u/fplpo_x)\
**Post date:** [March 10, 2010, 10:04am UTC](https://forum.fixtrading.org/t/how-to-reset-seq-num-in-quickfix-j-app/5014/3 "2010-03-10T10:04:27Z")

</div>

[original email was from Toby Corballis - [toby.corballis@rapidaddition.co.uk](mailto:toby.corballis@rapidaddition.co.uk) ]  
This isn’t really the place for support questions around products, even open source ones. You can find info at the QuickFIX/J website on how to get support, etc.

> I use the Quickfix/J API for implementing a FIX application. I would  
> like to know how to request a sequence number reset with the other party  
> during the first connection of the day. The need arose when the  
> application did not quit gracefully the previous day, and FIX  
> connectivity experienced a sequence number mismatch. I connect between  
> 8AM and 5PM CST, so this is not a 24x5 or 24x6 connectivity scenario.
> 
> The Logon call is implicitly facilitated when I start the  
> (initiator) application. So I am not sure how to programmatically  
> control the characteristics of this Logon message. Should I start by  
> intercepting the outgoing Logon message in the fromAdmin() method,  
> and somehow perform a message exchange from there to correctly reset  
> the sequence number?
> 
> Thanks!
