[Quickfix-developers] Re: Quickfix-developers digest, Vol 1 #781 - 1 msg
Brought to you by:
orenmnero
|
From: Michael L. <mly...@gm...> - 2005-06-03 12:23:26
|
Alvin, you can retreive the session at the onCreate callback using the static SessionLookup function. After you retreive the session you can do a logoff on the session and this will prevent the session from logging on at all. -Michael On 6/2/05, qui...@li... <qui...@li...> wrote: > Send Quickfix-developers mailing list submissions to > qui...@li... >=20 > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > or, via email, send a message with subject or body 'help' to > qui...@li... >=20 > You can reach the person managing the list at > qui...@li... >=20 > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Quickfix-developers digest..." >=20 >=20 > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/i= ndex.html > QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ > QuickFIX Support: http://www.quickfixengine.org/services.html >=20 >=20 >=20 > Today's Topics: >=20 > 1. Session Java object (Alvin Wang) >=20 > --__--__-- >=20 > Message: 1 > To: QuickFix <qui...@li...> > Cc: or...@qu... > From: Alvin Wang <AW...@FF...> > Date: Thu, 2 Jun 2005 14:31:35 -0400 > Subject: [Quickfix-developers] Session Java object >=20 > This is a multipart message in MIME format. >=20 > --=3D_alternative 0065C4E485257014_=3D > Content-Type: text/plain; charset=3D"us-ascii" > Content-Transfer-Encoding: 7bit >=20 > Hi, >=20 > It seems there is only one way to create a Session object in Java: > public static native Session lookupSession(SessionID sessionID); >=20 > But if the session is not completely built up yet (for example, the > sequence numbers cannot be agreed on and counterparty sends logout messag= e > in response my logon message), lookupSession will return null. Therefore= , I cannot use the following messages to try > to check the status and adjust SeqNum.... > public native boolean isEnabled(); > public native boolean sentLogon(); > public native boolean sentLogout(); > public native boolean receivedLogon(); > public native boolean isLoggedOn(); > public native void reset() throws IOException; > public native void setNextSenderMsgSeqNum(int int0) throws IOException; > public native void setNextTargetMsgSeqNum(int int0) throws IOException; >=20 > So I wonder how to check the status and adjust SeqNum without a session > object being created succesfully? >=20 >=20 >=20 > BTW, It seems that a logout message does not invoke fromAdmin callback: > public void fromAdmin(Message message, SessionID sessionID) >=20 > But the logon message invokes toAdmin callback. > I wonder if there is a bug? >=20 >=20 > Thanks a lot! > Alvin >=20 > ********************************************************************** > This e-mail message is intended solely for the use of the addressee. The = message > may contain information that is privileged and confidential. Disclosure= to > anyone other than the intended recipient is prohibited. If you are not th= e > intended recipient, please do not disseminate, distribute or copy this > communication, by e-mail or otherwise. Instead, please notify us immediat= ely by > return e-mail (including the original message with your reply) and then d= elete > and discard all copies of the message. > We have taken precautions to minimize the risk of transmitting software v= iruses > but nevertheless advise you to carry out your own virus checks on any > attachment to this message. We accept no liability for any loss or= damage > caused by software viruses. > ********************************************************************** >=20 > --=3D_alternative 0065C4E485257014_=3D > Content-Type: text/html; charset=3D"us-ascii" > Content-Transfer-Encoding: 7bit >=20 >=20 > <br><font size=3D2 face=3D"sans-serif">Hi,</font> > <br> > <br><font size=3D2 face=3D"sans-serif">It seems there is only one way to = create a Session object in Java:</font> > <br><font size=3D2 face=3D"sans-serif"><b>public static native Session lo= okupSession(SessionID sessionID);</b></font> > <br> > <br><font size=3D2 face=3D"sans-serif">But if the session is not complete= ly built up yet (for example, the sequence numbers cannot be agreed on and = counterparty sends logout message in response my logon message), <b>lookupS= ession</b> will return null. Therefore, I cannot use the following me= ssages to try to check the status and adjust SeqNum....</font> > <br><font size=3D2 face=3D"sans-serif"> public native boolean isEna= bled();</font> > <br><font size=3D2 face=3D"sans-serif"> public native boolean sentL= ogon();</font> > <br><font size=3D2 face=3D"sans-serif"> public native boolean sentL= ogout();</font> > <br><font size=3D2 face=3D"sans-serif"> public native boolean recei= vedLogon();</font> > <br><font size=3D2 face=3D"sans-serif"> public native boolean isLog= gedOn();</font> > <br><font size=3D2 face=3D"sans-serif"> public native void reset() = throws IOException;</font> > <br><font size=3D2 face=3D"sans-serif"> public native void setNextS= enderMsgSeqNum(int int0) throws IOException;</font> > <br><font size=3D2 face=3D"sans-serif"> public native void setNextT= argetMsgSeqNum(int int0) throws IOException;</font> > <br> > <br><font size=3D2 face=3D"sans-serif">So I wonder how to check the statu= s and adjust SeqNum without a session object being created succesfully?</fo= nt> > <br> > <br> > <br> > <br><font size=3D2 face=3D"sans-serif">BTW, It seems that a logout messag= e does not invoke fromAdmin callback:</font><font size=3D3 face=3D"Times Ne= w Roman"> </font><font size=3D2 face=3D"sans-serif"><br> > public void fromAdmin(Message message, SessionID sessionID) </font>= <font size=3D3 face=3D"Times New Roman"> <br> > </font><font size=3D2 face=3D"sans-serif"><br> > But the logon message invokes toAdmin callback. </font> > <br><font size=3D2 face=3D"sans-serif">I wonder if there is a bug? </font= > > <br> > <br> > <br><font size=3D2 face=3D"sans-serif">Thanks a lot!</font><font size=3D3= face=3D"Times New Roman"> </font> > <br><font size=3D3 face=3D"Times New Roman">Alvin</font> > <br> > ********************************************************************** > This e-mail message is intended solely for the use of the addressee. The = message > may contain information that is privileged and confidential. Disclosure= to > anyone other than the intended recipient is prohibited. If you are not th= e > intended recipient, please do not disseminate, distribute or copy this > communication, by e-mail or otherwise. Instead, please notify us immediat= ely by > return e-mail (including the original message with your reply) and then d= elete > and discard all copies of the message. > We have taken precautions to minimize the risk of transmitting software v= iruses > but nevertheless advise you to carry out your own virus checks on any > attachment to this message. We accept no liability for any loss or= damage > caused by software viruses. > ********************************************************************** >=20 > --=3D_alternative 0065C4E485257014_=3D-- >=20 >=20 >=20 > --__--__-- >=20 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers >=20 >=20 > End of Quickfix-developers Digest > |