getting Session settings from the session object

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

getting Session settings from the session object

Chaker Nakhli
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 list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/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 list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Chaker Nakhli
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



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

Phone: +33 6 89 37 11 69
Follow Us: Twitter | Linkedin


On Fri, Dec 6, 2013 at 1:23 PM, Christoph John <[hidden email]> wrote:
QuickFIX/J Documentation: <a href="http://www.quickfixj.org/documentation/ QuickFIX/J" target="_blank">http://www.quickfixj.org/documentation/
QuickFIX/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 list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800" target="_blank">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Christoph John
QuickFIX/J Documentation: 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

Phone: +33 6 89 37 11 69
Follow Us: Twitter | Linkedin


On Fri, Dec 6, 2013 at 1:23 PM, Christoph John <[hidden email]> wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/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 list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: <a moz-do-not-send="true" href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a moz-do-not-send="true" href="tel:%2B49%20241%20557080-0" value="+492415570800" target="_blank">+49 241 557080-0 | Fax: <a moz-do-not-send="true" href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Mike Gatny
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



I demonstrate how to do this in toAdmin (in c++) here:

https://github.com/mgatny/quickfix_101/blob/master/src/Workspace.cpp

You can do the same in QF/j.


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Grant Birchmeier
In reply to this post by Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



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 <[hidden email]> wrote:
QuickFIX/J Documentation: <a href="http://www.quickfixj.org/documentation/ QuickFIX/J" target="_blank">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

Phone: +33 6 89 37 11 69
Follow Us: Twitter | Linkedin


On Fri, Dec 6, 2013 at 1:23 PM, Christoph John <[hidden email]> wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/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 list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800" target="_blank">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800" target="_blank">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+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
[hidden email]
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.

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Chaker Nakhli
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



+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 <[hidden email]> 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 <[hidden email]> wrote:

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

Phone: +33 6 89 37 11 69
Follow Us: Twitter | Linkedin


On Fri, Dec 6, 2013 at 1:23 PM, Christoph John <[hidden email]> wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/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 list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800" target="_blank">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800" target="_blank">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+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
[hidden email]
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.


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Grant Birchmeier
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



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 <[hidden email]> 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 <[hidden email]> 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 <[hidden email]> wrote:

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

Phone: +33 6 89 37 11 69
Follow Us: Twitter | Linkedin


On Fri, Dec 6, 2013 at 1:23 PM, Christoph John <[hidden email]> wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/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 list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800" target="_blank">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800" target="_blank">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+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
[hidden email]
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.




--
Grant Birchmeier
Connamara Systems, LLC
Made-To-Measure Trading Solutions.
Exactly what you need. No more. No less.

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Grant Birchmeier
In reply to this post by Grant Birchmeier
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Oops, I forgot to link to the wiki page I was referring to:



On Fri, Dec 6, 2013 at 9:40 AM, Grant Birchmeier <[hidden email]> 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 <[hidden email]> wrote:
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

Phone: +33 6 89 37 11 69
Follow Us: Twitter | Linkedin


On Fri, Dec 6, 2013 at 1:23 PM, Christoph John <[hidden email]> wrote:
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 list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800" target="_blank">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



--
Christoph John
Development & Support
Direct: <a href="tel:%2B49%20241%20557080-28" value="+4924155708028" target="_blank">+49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: <a href="tel:%2B49%20241%20557080-0" value="+492415570800" target="_blank">+49 241 557080-0 | Fax: <a href="tel:%2B49%20241%20557080-10" value="+4924155708010" target="_blank">+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
[hidden email]
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.



--
Grant Birchmeier
Connamara Systems, LLC
Made-To-Measure Trading Solutions.
Exactly what you need. No more. No less.

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Steve Bate
In reply to this post by Grant Birchmeier
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



I fixed the wiki page. IIRC, that function was never defined in the Session class although the page content is quite old (possibly pre-1.0). I believe it was probably referring to what is now called SessionSettings.getSessionProperties(SessionID) which returns a Properties object containing the Session setting values (with resolved defaults, placeholders, etc.). That function would be useful if you need access to all Session settings but it will generally be slower than accessing just the settings you need as shown in the wiki example.

The Application callbacks provide a SessionID. That identifier can be used to directly lookup a session setting value in the SessionSettings object. Otherwise, the Application would need to lookup a Session object based on the SessionID and then get the setting value from the Session. If the Session.getSessionSettings() needs to resolve all the session settings it would also have the potential performance issue I mentioned earlier.

Looking at the QuickFIX/N Session.cs code in GitHub (https://github.com/connamara/quickfixn, branch: master), I don't see a getSessionSettings function. Where is that defined?

On Dec 6, 2013, at 10:40 AM, Grant Birchmeier <[hidden email]> wrote:

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


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?


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Steve Bate
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Looking back at the thread history I see the QuickFIX/N method that Chaker referred to was Session.getSettingValue(). I don't see that one either on GitHub. Can you point me to where that is defined? Thanks.

On Dec 7, 2013, at 6:45 AM, Steve Bate <[hidden email]> wrote:

I fixed the wiki page. IIRC, that function was never defined in the Session class although the page content is quite old (possibly pre-1.0). I believe it was probably referring to what is now called SessionSettings.getSessionProperties(SessionID) which returns a Properties object containing the Session setting values (with resolved defaults, placeholders, etc.). That function would be useful if you need access to all Session settings but it will generally be slower than accessing just the settings you need as shown in the wiki example.

The Application callbacks provide a SessionID. That identifier can be used to directly lookup a session setting value in the SessionSettings object. Otherwise, the Application would need to lookup a Session object based on the SessionID and then get the setting value from the Session. If the Session.getSessionSettings() needs to resolve all the session settings it would also have the potential performance issue I mentioned earlier.

Looking at the QuickFIX/N Session.cs code in GitHub (https://github.com/connamara/quickfixn, branch: master), I don't see a getSessionSettings function. Where is that defined?

On Dec 6, 2013, at 10:40 AM, Grant Birchmeier <[hidden email]> wrote:

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


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?



------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Steve Bate
In reply to this post by Chaker Nakhli
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



On Dec 6, 2013, at 11:03 AM, Chaker Nakhli <[hidden email]> wrote:

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 :-)

Hopefully you're not trolling, but it isn't true that "nobody uses doubles in finance" (assuming trading applications are considered "finance"). It's certainly true that one needs to be aware of the tradeoffs (benefits and potential risks) of floating point compared to other number representations.

Steve



------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Grant Birchmeier
In reply to this post by Steve Bate
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



I think Chakar is mistaken.  I don't know what he's referring to either.


On Sat, Dec 7, 2013 at 5:54 AM, Steve Bate <[hidden email]> wrote:
QuickFIX/J Documentation: <a href="http://www.quickfixj.org/documentation/ QuickFIX/J" target="_blank">http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Looking back at the thread history I see the QuickFIX/N method that Chaker referred to was Session.getSettingValue(). I don't see that one either on GitHub. Can you point me to where that is defined? Thanks.

On Dec 7, 2013, at 6:45 AM, Steve Bate <[hidden email]> wrote:

I fixed the wiki page. IIRC, that function was never defined in the Session class although the page content is quite old (possibly pre-1.0). I believe it was probably referring to what is now called SessionSettings.getSessionProperties(SessionID) which returns a Properties object containing the Session setting values (with resolved defaults, placeholders, etc.). That function would be useful if you need access to all Session settings but it will generally be slower than accessing just the settings you need as shown in the wiki example.

The Application callbacks provide a SessionID. That identifier can be used to directly lookup a session setting value in the SessionSettings object. Otherwise, the Application would need to lookup a Session object based on the SessionID and then get the setting value from the Session. If the Session.getSessionSettings() needs to resolve all the session settings it would also have the potential performance issue I mentioned earlier.

Looking at the QuickFIX/N Session.cs code in GitHub (https://github.com/connamara/quickfixn, branch: master), I don't see a getSessionSettings function. Where is that defined?

On Dec 6, 2013, at 10:40 AM, Grant Birchmeier <[hidden email]> wrote:

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


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?



------------------------------------------------------------------------------
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
[hidden email]
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.

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Steve Bate
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



There is a getSessionSettings member function in QuickFIX C++ but it's on the Initiator class, not the Session.

On Dec 7, 2013, at 11:00 AM, Grant Birchmeier <[hidden email]> wrote:

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


I think Chakar is mistaken.  I don't know what he's referring to either.


On Sat, Dec 7, 2013 at 5:54 AM, Steve Bate <[hidden email]> wrote:

Looking back at the thread history I see the QuickFIX/N method that Chaker referred to was Session.getSettingValue(). I don't see that one either on GitHub. Can you point me to where that is defined? Thanks.

On Dec 7, 2013, at 6:45 AM, Steve Bate <[hidden email]> wrote:

I fixed the wiki page. IIRC, that function was never defined in the Session class although the page content is quite old (possibly pre-1.0). I believe it was probably referring to what is now called SessionSettings.getSessionProperties(SessionID) which returns a Properties object containing the Session setting values (with resolved defaults, placeholders, etc.). That function would be useful if you need access to all Session settings but it will generally be slower than accessing just the settings you need as shown in the wiki example.

The Application callbacks provide a SessionID. That identifier can be used to directly lookup a session setting value in the SessionSettings object. Otherwise, the Application would need to lookup a Session object based on the SessionID and then get the setting value from the Session. If the Session.getSessionSettings() needs to resolve all the session settings it would also have the potential performance issue I mentioned earlier.

Looking at the QuickFIX/N Session.cs code in GitHub (https://github.com/connamara/quickfixn, branch: master), I don't see a getSessionSettings function. Where is that defined?

On Dec 6, 2013, at 10:40 AM, Grant Birchmeier <[hidden email]> wrote:

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


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?



------------------------------------------------------------------------------
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
[hidden email]
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.
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|

Re: getting Session settings from the session object

Chaker Nakhli
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Thank you Steve and you all guys for the feedback.

I ended up keeping a reference to the settings object and using the sessionID to lookup the settings of my session. Pretty much the same thing you guys suggested.

Grant is right, I am mistaken regarding quickfix/n as I am looking at a custom build. Sorry for the confusion.

Cheers
Chaker

On Sat, Dec 7, 2013 at 6:38 PM, Steve Bate <[hidden email]> wrote:
QuickFIX/J Documentation: <a href="http://www.quickfixj.org/documentation/ QuickFIX/J" target="_blank">http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



There is a getSessionSettings member function in QuickFIX C++ but it's on the Initiator class, not the Session.

On Dec 7, 2013, at 11:00 AM, Grant Birchmeier <[hidden email]> wrote:

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


I think Chakar is mistaken.  I don't know what he's referring to either.


On Sat, Dec 7, 2013 at 5:54 AM, Steve Bate <[hidden email]> wrote:

Looking back at the thread history I see the QuickFIX/N method that Chaker referred to was Session.getSettingValue(). I don't see that one either on GitHub. Can you point me to where that is defined? Thanks.

On Dec 7, 2013, at 6:45 AM, Steve Bate <[hidden email]> wrote:

I fixed the wiki page. IIRC, that function was never defined in the Session class although the page content is quite old (possibly pre-1.0). I believe it was probably referring to what is now called SessionSettings.getSessionProperties(SessionID) which returns a Properties object containing the Session setting values (with resolved defaults, placeholders, etc.). That function would be useful if you need access to all Session settings but it will generally be slower than accessing just the settings you need as shown in the wiki example.

The Application callbacks provide a SessionID. That identifier can be used to directly lookup a session setting value in the SessionSettings object. Otherwise, the Application would need to lookup a Session object based on the SessionID and then get the setting value from the Session. If the Session.getSessionSettings() needs to resolve all the session settings it would also have the potential performance issue I mentioned earlier.

Looking at the QuickFIX/N Session.cs code in GitHub (https://github.com/connamara/quickfixn, branch: master), I don't see a getSessionSettings function. Where is that defined?

On Dec 6, 2013, at 10:40 AM, Grant Birchmeier <[hidden email]> wrote:

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


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?



------------------------------------------------------------------------------
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
[hidden email]
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.
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users