<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\.HelveticaNeueUI";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NO-BOK" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">This post may help you around as well;<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US">http://dotnetdlr.com/2012/04/quickfix-connect-multiple-fix-sessions-with-fix-server/<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Mvh / Brgds<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Oeyvind Ellefsen<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif""> quickfixn-bounces@lists.quickfixn.com [mailto:quickfixn-bounces@lists.quickfixn.com]
<b>On Behalf Of </b>Fernando Furukawa<br>
<b>Sent:</b> 13. november 2013 13:44<br>
<b>To:</b> Mailing list for QuickFIX/n<br>
<b>Subject:</b> Re: {{Quickfixn}} Please Help in maintaining 2 sessions<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal">First of all, sorry my poor english<o:p></o:p></p>
</div>
<p class="MsoNormal">To handle more than one session, you can set the Default configuration in a QuickFix.Dictionary object and set then to SessionSettings object. And then, for each session you want to handle, set session configuration and add to same SessionSEttings
 objecct. For example:<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">QuickFix.SessionSettings setting = new QuickFix.SessionSettings();<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">QuickFix.Dictionary main = new QuickFix.Dictionary();<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">main.SetString("HeartBtInt", 30);<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">setting.Set(main);<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">And then for each seach you have, you can create a session dictionary and session id and add to main setting object...<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">for (int i=0; i<5;i++)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">{<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">QuickFix.Dictionary ssDic = new QuickFix.Dictionary();<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">ssDic.SetString("DataDictionary", "c:\temp\xx.xml");<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">SessionID ss = new SessionID(begin, target, sender);<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">setting.Set(ss, ssDic);<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">}<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">PS: It's only an example how to implement, this code won't compile correctly.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Fernando Furukawa<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Nov 13, 2013 at 10:28 AM, James Riehl <<a href="mailto:pete.riehl@gmail.com" target="_blank">pete.riehl@gmail.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<p class="MsoNormal">I've handled this with 2 separate applications. Looking forward to hearing about this.<br>
<br>
Sent from my iPhone<o:p></o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On Nov 13, 2013, at 7:23, "Nirjhar Jain" <<a href="mailto:nirjhar.jain@commdel.net" target="_blank">nirjhar.jain@commdel.net</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D">But, they have not mentioned anything about the 2 separate logins for Price quote and trading. For 2 separate logins, SenderCompId will be different
 for both cases.</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">Thanks & Regards,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-IN" style="font-family:"Century Gothic","sans-serif";color:#0F243E">Nirjhar Jain</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-IN" style="font-size:8.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">Software Engineer</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif""><br>
</span><b><span style="font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:#006699">COMMDEL</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:8.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">Commdel Consulting Services P Ltd,
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-IN" style="font-size:8.0pt;font-family:"Century Gothic","sans-serif"">H-134, Sector-63, Noida - U.P. (India)</span><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">  
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif"">    <span style="color:#1F497D">          
</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D"><a href="http://www.commdel.net/" target="_blank"><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif"">www.commdel.net</span></a></span><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#0070C0">
   </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-IN" style="font-size:8.0pt;font-family:"Century Gothic","sans-serif"">A n  
<span style="color:#006699">I S O     9 0 0 1 : 2 0 0 8</span>      C e r t i f i e d     C o m p a n y</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-IN" style="font-size:8.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">Payment</span></b><b><span lang="EN-IN" style="font-size:8.0pt;font-family:"Century Gothic","sans-serif"">          
<span style="color:#0070C0">Enterprise</span><span style="color:#006699">           
</span><span style="color:#FFC000">Mobility</span><span style="color:#006699">           
</span><span style="color:#A6A6A6">Internet</span><span style="color:#006699"> </span></span></b><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif""> </span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b>
<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a> [<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">mailto:quickfixn-bounces@lists.quickfixn.com</a>]
<b>On Behalf Of </b>James Riehl<br>
<b>Sent:</b> Wednesday, November 13, 2013 5:28 PM<br>
<b>To:</b> Mailing list for QuickFIX/n<br>
<b>Cc:</b> <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>><br>
<b>Subject:</b> Re: {{Quickfixn}} Please Help in maintaining 2 sessions<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">In your implementation of the application class, simply define the OnMessage handler for each type of message you expect to get. There is an example here <span style="font-size:11.5pt;font-family:".HelveticaNeueUI","serif""><a href="http://www.quickfixn.org/tutorial/creating-an-application" target="_blank">http://www.quickfixn.org/tutorial/creating-an-application</a>
 and here</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.5pt;font-family:".HelveticaNeueUI","serif""><a href="http://www.quickfixn.org/tutorial/receiving-messages" target="_blank">http://www.quickfixn.org/tutorial/receiving-messages</a>
 read all the docs here they are very useful.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.5pt;font-family:".HelveticaNeueUI","serif"">Hope this helps<br>
</span><br>
Sent from my iPhone<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><br>
On Nov 13, 2013, at 6:48, "Nirjhar Jain" <<a href="mailto:nirjhar.jain@commdel.net" target="_blank">nirjhar.jain@commdel.net</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi All,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Do Quickfixn supports 2 sessions simultaneously, i.e. one for Quote(Quote request, MarketData Request) and other for trading(order & execution report)?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">If yes, then How to implement it.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Please help<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">Thanks & Regards,</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-IN" style="font-family:"Century Gothic","sans-serif";color:#0F243E">Nirjhar Jain</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-IN" style="font-size:8.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">Software Engineer</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif""><br>
</span><b><span style="font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:#006699">COMMDEL</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:8.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">Commdel Consulting Services P Ltd,
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-IN" style="font-size:8.0pt;font-family:"Century Gothic","sans-serif"">H-134, Sector-63, Noida - U.P. (India)</span><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">  
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif"">    <span style="color:#1F497D">          
</span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="http://www.commdel.net/" target="_blank"><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif"">www.commdel.net</span></a><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#0070C0">
   </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-IN" style="font-size:8.0pt;font-family:"Century Gothic","sans-serif"">A n  
<span style="color:#006699">I S O     9 0 0 1 : 2 0 0 8</span>      C e r t i f i e d     C o m p a n y</span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span lang="EN-IN" style="font-size:8.0pt;font-family:"Century Gothic","sans-serif";color:#1F497D">Payment</span></b><b><span lang="EN-IN" style="font-size:8.0pt;font-family:"Century Gothic","sans-serif"">          
<span style="color:#0070C0">Enterprise</span><span style="color:#006699">           
</span><span style="color:#FFC000">Mobility</span><span style="color:#006699">           
</span><span style="color:#A6A6A6">Internet</span><span style="color:#006699"> </span></span></b><span lang="EN-IN" style="font-size:9.0pt;font-family:"Century Gothic","sans-serif""> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>