Ejemplo n.º 1
0
 public void start() throws RuntimeError, ConfigError, InterruptedException {
   logger.info("Establishing connection to FIX 5.0 server...");
   initiator.start();
   app.awaitLogon();
   logger.info("FixClient is ready to perform requests");
   sendRequests();
 }
Ejemplo n.º 2
0
 public void afterPropertiesSet() throws ConfigError {
   if (!started) {
     LogFactory logFactory = new ScreenLogFactory(sessionSettings);
     FileStoreFactory storeFactory = new FileStoreFactory(sessionSettings);
     MessageFactory messageFactory = new DefaultMessageFactory();
     feedInitiator =
         new SocketInitiator(
             application, storeFactory, sessionSettings, logFactory, messageFactory);
     feedInitiator.start();
   }
   started = true;
 }