简体   繁体   English

quickfix / j问题与接收消息

[英]quickfix/j problem with receive message

I've problem with QuickFixJ Application. 我的QuickFixJ应用程序有问题。 I create object of class(AppImpl) which implements Appplication interface, pass it to SocketAcceptor and wait for messages. 我创建实现Appplication接口的类(AppImpl)的对象,将其传递给SocketAcceptor并等待消息。 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. 在AppImpl中所有被重写的方法中,只有一个且只有一次被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:本地主机->本地主机,传入>(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) <20110829-05:35:56,FIX.4.4:localhost-> localhost,事件>(从/127.0.0.1:57179接受会话FIX.4.4:localhost-> localhost)

But method: 但是方法:

@Override
public void onLogon(SessionID arg0) {
    System.out.println("On logon");

}

Wasn't performed. 没有表演。

I'm just wondering why your SenderCompID and TargetCompID are same? 我只是想知道为什么您的SenderCompID和TargetCompID相同? Both are "localhost". 两者都是“ localhost”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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