Re: Quickfix-developers digest, Vol 1 #781 - 1 msg

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Quickfix-developers digest, Vol 1 #781 - 1 msg

Michael Lyszczek
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ
QuickFIX Support: http://www.quickfixengine.org/services.html

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

> Send Quickfix-developers mailing list submissions to
>         [hidden email]
>
> 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
>         [hidden email]
>
> You can reach the person managing the list at
>         [hidden email]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Quickfix-developers digest..."
>
>
> QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
> QuickFIX FAQ: http://www.quickfixengine.org/wikifix/index.php?QuickFixFAQ
> QuickFIX Support: http://www.quickfixengine.org/services.html
>
>
>
> Today's Topics:
>
>    1. Session Java object (Alvin Wang)
>
> --__--__--
>
> Message: 1
> To: QuickFix <[hidden email]>
> Cc: [hidden email]
> From: Alvin Wang <[hidden email]>
> Date: Thu, 2 Jun 2005 14:31:35 -0400
> Subject: [Quickfix-developers] Session Java object
>
> This is a multipart message in MIME format.
>
> --=_alternative 0065C4E485257014_=
> Content-Type: text/plain; charset="us-ascii"
> Content-Transfer-Encoding: 7bit
>
> Hi,
>
> It seems there is only one way to create a Session object in Java:
> public static native Session lookupSession(SessionID sessionID);
>
> But if the session is not completely built up yet (for example, the
> sequence numbers cannot be agreed on and counterparty sends logout message
> 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;
>
> So I wonder how to check the status and adjust SeqNum without a session
> object being created succesfully?
>
>
>
> BTW, It seems that a logout message does not invoke fromAdmin callback:
> public void fromAdmin(Message message, SessionID sessionID)
>
> But the logon message invokes toAdmin callback.
> I wonder if there is a bug?
>
>
> Thanks a lot!
> Alvin
>
> **********************************************************************
> 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 the
> intended recipient, please do not disseminate, distribute or copy this
> communication, by e-mail or otherwise. Instead, please notify us immediately by
> return e-mail (including the original message with your reply) and then delete
> and discard all copies of the message.
> We have taken precautions to minimize the risk of transmitting software viruses
>  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.
> **********************************************************************
>
> --=_alternative 0065C4E485257014_=
> Content-Type: text/html; charset="us-ascii"
> Content-Transfer-Encoding: 7bit
>
>
> <br><font size=2 face="sans-serif">Hi,</font>
> <br>
> <br><font size=2 face="sans-serif">It seems there is only one way to create a Session object in Java:</font>
> <br><font size=2 face="sans-serif"><b>public static native Session lookupSession(SessionID sessionID);</b></font>
> <br>
> <br><font size=2 face="sans-serif">But if the session is not completely built up yet (for example, the sequence numbers cannot be agreed on and counterparty sends logout message in response my logon message), <b>lookupSession</b> will return null. &nbsp;Therefore, I cannot use the following messages to try to check the status and adjust SeqNum....</font>
> <br><font size=2 face="sans-serif">&nbsp; public native boolean isEnabled();</font>
> <br><font size=2 face="sans-serif">&nbsp; public native boolean sentLogon();</font>
> <br><font size=2 face="sans-serif">&nbsp; public native boolean sentLogout();</font>
> <br><font size=2 face="sans-serif">&nbsp; public native boolean receivedLogon();</font>
> <br><font size=2 face="sans-serif">&nbsp; public native boolean isLoggedOn();</font>
> <br><font size=2 face="sans-serif">&nbsp; public native void reset() throws IOException;</font>
> <br><font size=2 face="sans-serif">&nbsp; public native void setNextSenderMsgSeqNum(int int0) throws IOException;</font>
> <br><font size=2 face="sans-serif">&nbsp; public native void setNextTargetMsgSeqNum(int int0) throws IOException;</font>
> <br>
> <br><font size=2 face="sans-serif">So I wonder how to check the status and adjust SeqNum without a session object being created succesfully?</font>
> <br>
> <br>
> <br>
> <br><font size=2 face="sans-serif">BTW, It seems that a logout message does not invoke fromAdmin callback:</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
> public void fromAdmin(Message message, SessionID sessionID) &nbsp;</font><font size=3 face="Times New Roman"> <br>
> </font><font size=2 face="sans-serif"><br>
> But the logon message invokes toAdmin callback. </font>
> <br><font size=2 face="sans-serif">I wonder if there is a bug? </font>
> <br>
> <br>
> <br><font size=2 face="sans-serif">Thanks a lot!</font><font size=3 face="Times New Roman"> </font>
> <br><font size=3 face="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 the
> intended recipient, please do not disseminate, distribute or copy this
> communication, by e-mail or otherwise. Instead, please notify us immediately by
> return e-mail (including the original message with your reply) and then delete
> and discard all copies of the message.
> We have taken precautions to minimize the risk of transmitting software viruses
>  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.
> **********************************************************************
>
> --=_alternative 0065C4E485257014_=--
>
>
>
> --__--__--
>
> _______________________________________________
> Quickfix-developers mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfix-developers
>
>
> End of Quickfix-developers Digest
>


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Quickfix-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfix-developers