QuickFix/j 接收消息的问题
我在使用 QuickFixJ 应用程序时遇到问题。我创建实现 Appplication 接口的类(AppImpl)对象,将其传递给 SocketAcceptor 并等待消息。但是我收到来自客户端的新消息(我可以在日志中看到它们)我无法使用它们!在 AppImpl 中的所有重写方法中,SocketAcceptor 仅调用了一个且仅一次 - onCreate。 什么可能导致这个问题?
我的日志示例:
登录:
<20110829-05:35:56,FIX.4.4:localhost->localhost,传入> (8=FIX.4.49=5835=A49=localhost56=localhost34=8652=20110829-05:35:5610=250)
<20110829-05:35:56,FIX.4.4:localhost->localhost,事件> (从 /127.0.0.1:57179 接受会话 FIX.4.4:localhost->localhost)
但是方法:
@Override
public void onLogon(SessionID arg0) {
System.out.println("On logon");
}
未执行。
I've problem with QuickFixJ Application. I create object of class(AppImpl) which implements Appplication interface, pass it to SocketAcceptor and wait for messages. However I receive new messages from client(I can see them in logs) I cannot work with them! From all overrided methods in AppImpl only one and only once was invoked by SocketAcceptor - onCreate.
What could caused this problem?
Example from my logs:
Logon:
<20110829-05:35:56, FIX.4.4:localhost->localhost, incoming> (8=FIX.4.49=5835=A49=localhost56=localhost34=8652=20110829-05:35:5610=250)
<20110829-05:35:56, FIX.4.4:localhost->localhost, event> (Accepting session FIX.4.4:localhost->localhost from /127.0.0.1:57179)
But method:
@Override
public void onLogon(SessionID arg0) {
System.out.println("On logon");
}
Wasn't performed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我只是想知道为什么你的 SenderCompID 和 TargetCompID 相同?两者都是“本地主机”。
I'm just wondering why your SenderCompID and TargetCompID are same? Both are "localhost".