You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a low visibility of a pending messages, e.g. when Session.sendToTarget() is invoked while FIX session is down. Message is only stored to the session storage, and not to the log.
Would like to expect the message to trigger something like onPending callback and be able to see actually assigned sequence number and sending time by the engine in this log.
It may be a major change to the current logging approach so open to discussion first :)
Hi @andreydp , I think a callback is the least intrusive way to do this so anyone could decide whether to implement it or not.
However, as a quick workaround you could extend your message store's set method to print that information. Maybe only if the session is not logged on...
Cheers
Chris
I don't know what your exact use case is. Maybe it helps to check the messages in the store, e.g. via SessionAdmin MBean, to get an overview of the messages and seqnums.
The use case is - it's required by the industry to store all messages for 7 years, even not sent to the client. Imagine situation when client disconnects before session end time, but application stil has some pending messages to sent. Then EndTime comes, session is reset and on StartTime those messages are lost.
The use case is - it's required by the industry to store all messages for 7 years, even not sent to the client. Imagine situation when client disconnects before session end time, but application stil has some pending messages to sent. Then EndTime comes, session is reset and on StartTime those messages are lost.
Hi, PR #1345 may help with the use case in this issue.
It adds a new session setting KeepUnsentMessagesOnReset (default N). With Y, messages sent while the session is not logged on are not lost when the session is reset by its schedule (EndTime / StartTime). They are kept in the store with new sequence numbers. After the next logon, the other side asks for them with a ResendRequest, and they are sent again with PossDupFlag=Y.
It works with MemoryStore, FileStore, CachedFileStore and JdbcStore (JdbcStore needs one extra table, SQL scripts are in the PR).
It does not add an onPending callback or a log entry for these messages. That part of this issue is still open.
Activity
chrjohn commentedon Jul 31, 2026
Hi @andreydp , I think a callback is the least intrusive way to do this so anyone could decide whether to implement it or not.
However, as a quick workaround you could extend your message store's
setmethod to print that information. Maybe only if the session is not logged on...Cheers
Chris
chrjohn commentedon Jul 31, 2026
I don't know what your exact use case is. Maybe it helps to check the messages in the store, e.g. via SessionAdmin MBean, to get an overview of the messages and seqnums.
andreydp commentedon Jul 31, 2026
The use case is - it's required by the industry to store all messages for 7 years, even not sent to the client. Imagine situation when client disconnects before session end time, but application stil has some pending messages to sent. Then EndTime comes, session is reset and on StartTime those messages are lost.
chrjohn commentedon Jul 31, 2026
Ok, then it has overlaps with #463 and/or #986
aymenjamaaoui commentedon Nov 15, 2026
Hi, PR #1345 may help with the use case in this issue.
It adds a new session setting
KeepUnsentMessagesOnReset(defaultN). WithY, messages sent while the session is not logged on are not lost when the session is reset by its schedule (EndTime/StartTime). They are kept in the store with new sequence numbers. After the next logon, the other side asks for them with a ResendRequest, and they are sent again withPossDupFlag=Y.It works with
MemoryStore,FileStore,CachedFileStoreandJdbcStore(JdbcStoreneeds one extra table, SQL scripts are in the PR).It does not add an
onPendingcallback or a log entry for these messages. That part of this issue is still open.