Details
-
Type: Bug
-
Status: Closed
-
Priority: Default
-
Resolution: Not a bug
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
The sample code on http://www.quickfixj.org/quickfixj/usermanual/usage/application.html does not include the configuration file.
Using the configuration file found on http://www.quickfixj.org/quickfixj/usermanual/usage/configuration.html returns the following errors when executing the sample code:
Exception in thread "main" quickfix.ConfigError: No acceptor sessions found in settings.
at quickfix.mina.acceptor.AbstractSocketAcceptor.createSessions(AbstractSocketAcceptor.java:135)
at quickfix.mina.acceptor.AbstractSocketAcceptor.<init>(AbstractSocketAcceptor.java:62)
at quickfix.mina.acceptor.AbstractSocketAcceptor.<init>(AbstractSocketAcceptor.java:78)
at quickfix.SocketAcceptor.<init>(SocketAcceptor.java:36)
at xxx.Brook.mainAcceptor(Brook.java:228)
at xxx.Brook.main(Brook.java:169)
{{{
public static void main(String args[]) throws Exception {
if(args.length != 1) return;
String fileName = args[0];
Application application = new Application();
Settings settings = new Settings(new FileInputStream(fileName));
MessageStoreFactory storeFactory = new FileStoreFactory(settings);
LogFactory logFactory = new FileLogFactory(settings);
MessageFactory messageFactory = new DefaultMessageFactory();
// ERROR occurs on following line
Acceptor acceptor = new SocketAcceptor (application, storeFactory, settings, logFactory, messageFactory);
acceptor.start();
// while( condition == true )
acceptor.stop();
}
}}}