|
From: Colin D. <co...@ma...> - 2019-09-12 12:47:28
|
Yeah, agree with Chris, here. We use multiple SocketInitiators to make it easier to dynamically add and remove sessions without restarting. If you don't need to dynamically remove sessions without restarting, no reason to use multiple SIs, but, you probably do want to use ThreadedSocketInitiator, as Chris suggests. On 9/12/19 3:21 AM, Christoph John via Quickfixj-users wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > > Hi, > > you can safely use one SocketInitiator for multiple sessions. The > default SocketInitiator has one thread for all sessions. > You might want to use a ThreadedSocketInitiator then (has one thread > per session) but it is not required. > > If you used one SocketInitiator per connection it is IMHO easier to > start/stop dedicated sessions. You could then simply stop the whole > SocketInitiator. > I don't know how many sessions you want to handle. > > Cheers, > Chris. > > > > On 12.09.19 11:51, Kodippili Arachchige, Asanka wrote: >> QuickFIX/J Documentation:http://www.quickfixj.org/documentation/ >> QuickFIX/J Support:http://www.quickfixj.org/support/ >> >> >> >> Hi, >> >> What is the correct usage of SocketInitiator ? Is it recommended to >> create a separate session initiator object for each connection? I >> came across some code that follows this approach. Can’t we safely >> use the same SocketInitiator for multiple connections in a >> multi-threaded application ? The documentation suggests that this is >> possible. I wanted to check if there is might be any reason to use >> the one SocketInitiator per connection approach instead. >> >> Thanks, >> >> Asanka >> >> ------------------------------------------------------------------------------------------------------------ >> >> Please read these warnings and restrictions: >> >> This e-mail transmission is strictly confidential and intended solely >> for the ordinary user of the e-mail address to which it was >> addressed. It may contain legally privileged and/or CONFIDENTIAL >> information. >> >> The unauthorised use, disclosure, distribution and/or copying of this >> e-mail or any information it contains is prohibited and could, in >> certain circumstances, constitute a criminal offence. >> >> If you have received this e-mail in error or are not an intended >> recipient please inform London Stock Exchange Group (“LSEG”) >> immediately by return e-mail or telephone 020 7797 1000. >> >> LSEG may collect, process and retain your personal information for >> its business purposes. For more information please see our Privacy >> Policy <https://www.lseg.com/privacy-and-cookie-policy>. >> >> We advise that in keeping with good computing practice the recipient >> of this e-mail should ensure that it is virus free. We do not accept >> responsibility for any virus that may be transferred by way of this >> e-mail. >> >> E-mail may be susceptible to data corruption, interception and >> unauthorised amendment, and we do not accept liability for any such >> corruption, interception or amendment or any consequences thereof. >> >> Calls to London Stock Exchange Group may be recorded to enable LSEG >> to carry out its regulatory responsibilities. >> >> London Stock Exchange Group plc >> >> 10 Paternoster Square >> London >> EC4M 7LS >> >> Registered in England and Wales No 05369106 >> >> ------------------------------------------------------------------------------------------------------------ >> >> >> >> _______________________________________________ >> Quickfixj-users mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > -- > Christoph John > Software Engineering > T +49 241 557080-28 > chr...@ma... > > MACD GmbH > Oppenhoffallee 103 > 52066 Aachen, Germany > www.macd.com > > Amtsgericht Aachen: HRB 8151 > Ust.-Id: DE 813021663 > Geschäftsführer: George Macdonald > > > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users -- Colin DuPlantis Chief Architect, Marketcetera Download, Run, Trade 888.868.4884 https://www.marketcetera.com |