|
From: Grant B. <gbi...@co...> - 2013-12-06 16:12:28
|
To be clear, QF/n does *not* have Session.UserName and Session.Password. You're mistaken. On Fri, Dec 6, 2013 at 10:03 AM, Chaker Nakhli <cha...@si... > wrote: > +1 > Agree with Grant it should be added. It is already available in the > quickfix/n lib (see properties Session.UserName, Session.Password, > Session.ResetOnLogout etc.). > > On another note: please stop the "Double madness". Nobody uses doubles in > finance this should not be the default. I know it is off topic here though > :-) > > > On Fri, Dec 6, 2013 at 3:40 PM, Grant Birchmeier < > gbi...@co...> wrote: > >> I'd like to point out that this wiki page makes reference to a >> Session.getSessionSettings() function. This function, however, does not >> actually exist. >> >> Did it ever? Could it be added? >> >> >> On Fri, Dec 6, 2013 at 8:37 AM, Christoph John <chr...@ma...>wrote: >> >>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>> QuickFIX/J <http://www.quickfixj.org/documentation/QuickFIX/J> Support: >>> http://www.quickfixj.org/support/ >>> >>> >>> >>> Hi, >>> >>> sorry, I misunderstood the question. I do not see any possibility to >>> get the session settings from a session object in QFJ. >>> >>> Cheers, >>> Chris. >>> >>> On 12/06/2013 02:54 PM, Chaker Nakhli wrote: >>> >>> Hi Christoph, >>> >>> My question is not about how to set username/pwd into a message. My >>> question is how to get session settings form a session object. In the faq, >>> the username and pwd are taken from _username and _password fields >>> populated from "somewhere". I would like to find a way to get these values >>> from a session object. >>> >>> Cheers >>> Chaker >>> >>> Chaker Nakhli, PhD >>> CEO — Senior Software Architect >>> <http://www.sinbadsoft.com/> >>> *Phone:* +33 6 89 37 11 69 >>> *Follow Us: *Twitter <https://twitter.com/sinbadsoft>* | *Linkedin<http://www.linkedin.com/company/sinbadsoft> >>> >>> >>> On Fri, Dec 6, 2013 at 1:23 PM, Christoph John <chr...@ma...>wrote: >>> >>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>>> QuickFIX/J <http://www.quickfixj.org/documentation/%0AQuickFIX/J>Support: >>>> http://www.quickfixj.org/support/ >>>> >>>> >>>> >>>> Hi, >>>> >>>> this is the first point in the FAQ :) >>>> http://www.quickfixj.org/confluence/display/qfj/User+FAQ >>>> >>>> Cheers >>>> >>>> >>>> On 12/06/2013 01:25 PM, Chaker Nakhli wrote: >>>> >>>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >>>> QuickFIX/J Support: http://www.quickfixj.org/support/ >>>> >>>> >>>> >>>> Hello, >>>> >>>> I would like to customize the sent Login message in the toAdmin >>>> method by adding the Username and Password values from the current session >>>> settings. Something like that: >>>> >>>> @Override >>>> public void toAdmin(Message message, SessionID sessionId) { >>>> Header header = message.getHeader(); >>>> if (!header.isSetField(MsgType.FIELD) || >>>> !header.getString(MsgType.FIELD).equals(MsgType.LOGON)) >>>> { >>>> // not a logon message: do not modify it >>>> return; >>>> } >>>> >>>> Session session = Session.lookupSession(sessionId); >>>> >>>> >>>> message.setField(new >>>> Username(seesion.getSettingValue????("Username"))); >>>> message.setField(new >>>> Password(seesion.getSettingValue????("Password"))); >>>> } >>>> >>>> Is there any way to do this in quickfixJ? BTW this is possible in >>>> quickfixn, the .NET version. >>>> >>>> Cheers, >>>> Chaker >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Sponsored by Intel(R) XDK >>>> Develop, test and display web and hybrid apps with a single code base. >>>> Download it for free now!http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk >>>> >>>> >>>> >>>> _______________________________________________ >>>> Quickfixj-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/quickfixj-users >>>> >>>> >>>> -- >>>> Christoph John >>>> Development & Support >>>> Direct: +49 241 557080-28 <%2B49%20241%20557080-28> >>>> Mailto:Chr...@ma... >>>> >>>> >>>> >>>> http://www.macd.com >>>> ------------------------------ >>>> ------------------------------ >>>> MACD GmbH >>>> Oppenhoffallee 103 >>>> D-52066 Aachen >>>> Tel: +49 241 557080-0 <%2B49%20241%20557080-0> | Fax: +49 241 557080-10<%2B49%20241%20557080-10> >>>> Amtsgericht Aachen: HRB 8151 >>>> Ust.-Id: DE 813021663 >>>> >>>> Geschäftsführer: George Macdonald >>>> ------------------------------ >>>> ------------------------------ >>>> take care of the environment - print only if necessary >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Sponsored by Intel(R) XDK >>>> Develop, test and display web and hybrid apps with a single code base. >>>> Download it for free now! >>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Quickfixj-users mailing list >>>> Qui...@li... >>>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >>>> >>>> >>> >>> -- >>> Christoph John >>> Development & Support >>> Direct: +49 241 557080-28 >>> Mailto:Chr...@ma... >>> >>> >>> >>> http://www.macd.com >>> ------------------------------ >>> ------------------------------ >>> MACD GmbH >>> Oppenhoffallee 103 >>> D-52066 Aachen >>> Tel: +49 241 557080-0 | Fax: +49 241 557080-10 >>> Amtsgericht Aachen: HRB 8151 >>> Ust.-Id: DE 813021663 >>> >>> Geschäftsführer: George Macdonald >>> ------------------------------ >>> ------------------------------ >>> take care of the environment - print only if necessary >>> >>> >>> ------------------------------------------------------------------------------ >>> Sponsored by Intel(R) XDK >>> Develop, test and display web and hybrid apps with a single code base. >>> Download it for free now! >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Quickfixj-users mailing list >>> Qui...@li... >>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >>> >>> >> >> >> -- >> Grant Birchmeier >> *Connamara Systems, LLC* >> *Made-To-Measure Trading Solutions.* >> Exactly what you need. No more. No less. >> http://connamara.com >> > > -- Grant Birchmeier *Connamara Systems, LLC* *Made-To-Measure Trading Solutions.* Exactly what you need. No more. No less. http://connamara.com |