|
From: Colin D. <co...@ma...> - 2018-11-20 14:19:10
|
I'm not sure what the whole history of this conversation is, but, something jumped out at me so I thought I'd just throw this out there. In the code below, you create a DynamicAcceptorSessionProvider for *each* session. You should create just one for all sessions, right? Not sure if that will make a difference. On 11/19/18 4:32 PM, Alex Wibowo wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > > > Hi Christoph, > > I should also mention that we are using ThreadedSocketAcceptor. So, it > looks roughly like: > > Acceptor acceptor = new ThreadedSocketAcceptor(application, > messageStoreFactory, settings, logFactory, messageFactory); > > for (final SessionID sessionID : (Iterable<SessionID>) > settings::sectionIterator){ > final int acceptPort = (int) > settings.getLong(sessionID, Acceptor.SETTING_SOCKET_ACCEPT_PORT); > if (settings.getBool(sessionID, > Acceptor.SETTING_ACCEPTOR_TEMPLATE)) { > > final AcceptorSessionProvider > dynamicAcceptorSessionProvider = new > DynamicAcceptorSessionProvider(settings, sessionID, application, > messageStoreFactory, logFactory, messageFactory); > acceptor.setSessionProvider(new > InetSocketAddress(acceptPort), dynamicAcceptorSessionProvider); > } > } > > The example and the test included in the project is using SocketAcceptor > (instead of ThreadedSocketAcceptor). > > > Regards, > > Alex > > > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > |