如何注销修复会话? [英] how to logout fix session?

查看:86
本文介绍了如何注销修复会话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用quickfixj.我有一条自定义消息,例如"EndTrade",当收到该消息时,我要结束修复会话吗?我怎样才能做到这一点?我没有找到任何办法. 它不允许我使用new Session().logout().

I'm using quickfixj. I have a custom message like "EndTrade", when I got that message, I want to end fix session? How can I do that? I have not find any way to do so. It is not allowing me to use new Session().logout().

推荐答案

我得到了我的问题的答案.您可以通过以下方式注销修订会话.

I got answer of my question. you can logout your fix session in following way.

Session.lookupSession(sessionID).logout();

这篇关于如何注销修复会话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆