Thread: [Quickfix-developers] initiator.getSession Error
Brought to you by:
orenmnero
From: tony w. <ton...@ya...> - 2006-03-29 23:19:16
|
Hello, I'm including quickFix into a VB .Net Express application (using .Net 2.0). Due to how the particular Fix Server is configured I need to change the MsgSeqNum, which seems quite easy to do on the Session object. I'm currently not able to get the session object. The initiator does not seem to support the "getSession" method. I am able to access the "getSessions" method but this only seems to return an array of the SessionIds. Is there something I'm missing or an alternative way to get the Session object based on the sessionId? Thank you, Tony |
From: Oren M. <or...@qu...> - 2006-03-30 16:03:59
|
There is a static method on Session called lookupSession which takes in = a SessionID and returns the Session object. --oren ----- Original Message -----=20 From: tony weston=20 To: qui...@li...=20 Sent: Wednesday, March 29, 2006 5:19 PM Subject: [Quickfix-developers] initiator.getSession Error Hello, I'm including quickFix into a VB .Net Express application (using .Net = 2.0). Due to how the particular Fix Server is configured I need to = change the MsgSeqNum, which seems quite easy to do on the Session = object. I'm currently not able to get the session object. The = initiator does not seem to support the "getSession" method. I am able = to access the "getSessions" method but this only seems to return an = array of the SessionIds. Is there something I'm missing or an = alternative way to get the Session object based on the sessionId? Thank you, Tony |
From: tony w. <ton...@ya...> - 2006-03-30 16:08:38
|
Oren, That is exactly what I need, I guess I should have looked a little further into the documentation. Thank you. Tony Oren Miller wrote: > There is a static method on Session called lookupSession which takes in > a SessionID and returns the Session object. > > --oren > > ----- Original Message ----- > *From:* tony weston <mailto:ton...@ya...> > *To:* qui...@li... > <mailto:qui...@li...> > *Sent:* Wednesday, March 29, 2006 5:19 PM > *Subject:* [Quickfix-developers] initiator.getSession Error > > Hello, > > I'm including quickFix into a VB .Net Express application (using > .Net 2.0). Due to how the particular Fix Server is configured I > need to change the MsgSeqNum, which seems quite easy to do on the > Session object. I'm currently not able to get the session object. > The initiator does not seem to support the "getSession" method. I > am able to access the "getSessions" method but this only seems to > return an array of the SessionIds. Is there something I'm missing > or an alternative way to get the Session object based on the sessionId? > > Thank you, > Tony |
From: Tony W. <ton...@tr...> - 2006-03-30 16:06:10
|
Oren, That is exactly what I need, I guess I should have looked a little further into the documentation. Thank you. Tony Oren Miller wrote: > There is a static method on Session called lookupSession which takes in > a SessionID and returns the Session object. > > --oren > > ----- Original Message ----- > *From:* tony weston <mailto:ton...@ya...> > *To:* qui...@li... > <mailto:qui...@li...> > *Sent:* Wednesday, March 29, 2006 5:19 PM > *Subject:* [Quickfix-developers] initiator.getSession Error > > Hello, > > I'm including quickFix into a VB .Net Express application (using > .Net 2.0). Due to how the particular Fix Server is configured I > need to change the MsgSeqNum, which seems quite easy to do on the > Session object. I'm currently not able to get the session object. > The initiator does not seem to support the "getSession" method. I > am able to access the "getSessions" method but this only seems to > return an array of the SessionIds. Is there something I'm missing > or an alternative way to get the Session object based on the sessionId? > > Thank you, > Tony |
From: EclipseCap <tob...@ec...> - 2009-02-20 16:26:21
|
For posterity here is some code that I use to get from the list of SessionIDs that are strings to an actual QuickFix Session. System.Collections.ArrayList Sessions; Sessions = initiator.getSessions(); SessionID ID = new SessionID(); ID.fromString(Sessions[0].ToString()); Session LookingAt = Session.lookupSession(ID); Ensuring that a session exists at Sessions[0] is an exercise for the user. -- View this message in context: http://www.nabble.com/initiator.getSession-Error-tp3661067p22120791.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |