Reputation: 41
I am using quickfixj where I have acceptor from which I am sending fix message using Logout() method "8=FIX.4.29=8235=534=38749=TEST152=20130409-08:01:47.86256=TEST2-1136558=User Is Blocked10=231" to initiator , but I can see heart beat sent from Acceptor itself how do we over come this ? I am using the below code
Logout oLogout = new Logout();
quickfix.field.Text aText = new quickfix.field.Text("User Is Blocked");
oLogout.set(aText);
Session.sendToTarget(oLogout, "TEST2-11365, "TEST1");
Upvotes: 3
Views: 2182
Reputation: 18484
You should not manually send a Logout like this. Logout is an admin message; you should trust the engine to send/receive all admin message types.
What is happening is that you are sending this message outside of the engine's control logic. The engine is treating it as any other outgoing application-level message, and not initiating the engine's internal shutdown logic.
If you call Acceptor.stop(), then engine will initiate its shutdown logic and send the Logout for you.
Upvotes: 3