|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
How we will can invoke two sessions Qftrade and Qfstream in an applicationHI,
I want to have two session Qftrade and Qfstream in my application. Any suggestion how can i do it and how i will handle them separately? AS the only thin to me which is different in the configuration of to sessions is Target Sub ID. And what i observed is Quick fix do not pick target sub ID and raw data fields form config file, when it send logon message. we have to manually add the field using the toAdmin call back. How we will can invoke two sessions and handle them separately?? Do we need to create two different objects of FIX::Socketinitator but for that we we have two different config files( I think) or any other simple way to have this done. Please suggest.... Thanks, Asad |
|
|
Re: How we will can invoke two sessions Qftrade and Qfstream in an applicationIn separate applications, i can connect to both but i want to do it in a single application...
|
|
|
Re: How we will can invoke two sessions Qftrade and Qfstream in an applicationYes 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. |
|
|
Re: How we will can invoke two sessions Qftrade and Qfstream in an applicationQuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html 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=ISLD57=qfstream96=fxall12398=0108=1010=160
8=FIX.4.49=9135=A49=ISLD56=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=ISLD10=238 8=FIX.4.49=7935=049=ISLD56=TW34=2152=20091023-17:09:45.93157=user150=qfstream10=251 8=FIX.4.49=7935=549=ISLD56=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] [SESSION] On Fri, Oct 23, 2009 at 6:18 PM, vbgargote <vbgargote@...> wrote:
------------------------------------------------------------------------------ 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 Quickfix-developers@... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |