简体   繁体   中英

sending message on a session that is not connected

What happens when we try to send a message on a session that is not connected?

I have found that the QuickFIXJ method for sending the message throws a checked exception, but I want to know under which circumstances is this exception thrown.

The SessionNotFound exception will be thrown if the session is not available / disconnected at the time you send a message. However, if the session becomes unavailable after that, no exception is thrown right away, and it will be thrown when you try to send the next message.

If you want to detect disconnects and handle them, you can check this answer: QuickFIX/J: how to detect when connection fails?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM