Re: [Quickfix-developers] How we will can invoke two sessions Qftrade and Qfstream in an applicatio
Brought to you by:
orenmnero
From: choudhry a. <ch...@gm...> - 2009-10-23 17:20:56
|
Hi, my config file in given below: I want to have tow session 1 for Qfstream and other for Qftrade. now the 1st issue is it alwaye pick the file log path and store path of 2nd session defned.... as the qfix do not automatically pick up the arget sub id so i using toAdmin callback as if teh 1st time the call back is invoked send the target sub ID as Qfstream else qftrade. i onle getting logon for qfstream session. and the only los are sreated at the location of 2nd session defined... while no log file is created at fle log path of 1sr session defined in config. Please suggest how can i fix this issue.. Here is the log file and config file 8=FIX.4.49=10335=A34=1749=TW50=user152=20091023-17:09:37.03356=*ISLD* 57=qfstream96=fxall12398=0108=1010=160 8=FIX.4.49=9135=A49=*ISLD* 56=TW34=2052=20091023-17:09:35.93057=user150=qfstream108=1098=010=026 8=FIX.4.49=6735=034=1849=TW50=user152=20091023-17:09:47.03556=*ISLD* 10=238 8=FIX.4.49=7935=049=*ISLD* 56=TW34=2152=20091023-17:09:45.93157=user150=qfstream10=251 8=FIX.4.49=7935=549=*ISLD* 56=TW34=3052=20091023-17:11:09.68357=user150=qfstream10=253 # default settings for sessions [DEFAULT] ConnectionType=initiator ReconnectInterval=20 LogonTimeout=30 StartTime=00:00:00 EndTime=23:00:00 HeartBtInt=10 #SocketConnectHost=localhost SocketConnectHost=127.0.0.1 SocketConnectPort=9000 FileLogPath=c:\qfixlogs\ FileStorePath=c:\qfixstore\ [SESSION] BeginString=FIX.4.4 TargetCompID=*ISLD* TargetSubID=qftrade SenderCompID=TW SenderSubID=user1 RawData=123456 HeartBtInt=10 FileLogPath=c:\qfixlogs\ FileStorePath=c:\qfixstore\ DataDictionary=C:\quickfix-1.12.4\quickfix\spec\FIX44.xml [SESSION] BeginString=FIX.4.4 TargetCompID=*ISLD* TargetSubID=qfstream SenderCompID=TW SenderSubID=uer1 RawData=123456 HeartBtInt=10 FileLogPath=c:\qfixlogs_acp\ FileStorePath=c:\qfixstore_acp\ DataDictionary=C:\quickfix-1.12.4\quickfix\spec\FIX44.xml On Fri, Oct 23, 2009 at 6:18 PM, vbgargote <vbg...@gm...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Yes you can do it. You need to add the entries in the config file. > A session is created using a combination of senderID and targetID and > stored > in a collection. > When you send a message using a "Session::Send(fix message) , the session > gets the senderIS and targetID from the fix message and searches for it in > the collection.If it finds a matching session data is send on that session. > > So as many targetIDs in your config file you will have that many > sessions.At > runtime you have to choose the targetID,that targetID will be set in the > fix > message and do a "Send". > Hope this is what you are looking for. > > > -- > View this message in context: > http://www.nabble.com/How-we-will-can-invoke-two-sessions-Qftrade-and-Qfstream-in-an-application-tp26023357p26025284.html > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |