We observe the error message given below (No responder...) when we try to
setup an initiator session and try sending out a logon message over that
session. We are calling the SendToTarget with just the message or with the
message/sendercompid & targetcompid. We have not tried using the overloaded
version with the session id as the second parameter. We are able to set up
an acceptor which appears to listen (according to the code and netstat).
However, we are having trouble setting up the initiator session (no issues
with firewalls/ports etc.) The code we are using is more or less the same
as provided in the quickfixj docs (copied below)
20080731-00:53:36: Session state is not current; resetting
FIX.4.4:testclient->TESTServer
20080731-00:53:36: Created session: FIX.4.4:testclient->TESTServer
20080731-00:53:37: No responder, not sending message
public class Test {
public static void main(String args[]) throws Exception {
File fileTest2 = new
File("C:/Eclipse2/Proj/QFixJavaProj/config/Initiator/config.ini.txt");
ApplicationTest application2 = new ApplicationTest();
SessionSettings settings2 = new SessionSettings(new
FileInputStream(fileTest2));
MessageStoreFactory storeFactory2 = new FileStoreFactory(settings2);
LogFactory logFactory2 = new FileLogFactory(settings2);
MessageFactory messageFactory2 = new DefaultMessageFactory();
Initiator initiator = new SocketInitiator
(application2, storeFactory2, settings2, logFactory2, messageFactory2);
initiator.start();
Client sender = new Client(); // separate class from where we call
sendToTarget
//SessionID holder = quickfix.SessionID;
sender.sendLogon();
Regards,
--
View this message in context: http://www.nabble.com/trouble-setting-up-initiator-session-tp18746437p18746437.html
Sent from the QuickFIX - Dev mailing list archive at Nabble.com.
|