RE: [Quickfix-developers] SessionNotFound Exception sending messa ges in Java
Brought to you by:
orenmnero
From: Rattinger, J. <Joh...@sa...> - 2003-04-22 19:36:35
|
Hello, Help! I'm not even getting as far as Dave did below. I've created a little C++ test app that will send test orders out to a broker. I have more or less cloned the tradeclient example. I can start up a session and connect to the broker and all appears to be well - logon, hearbeat,... my config file looks like this; [SESSION] BeginString=FIX.4.0 SenderCompID=CLIENTX TargetCompID=BROKERX When I try to send an order via "sendToTarget", I always get the error "Session Not Found". I have tried all variations of the sendToTarget method. If I retrieve the sessionId via order.getSessionID(), I always get the same Id I get when the session is created at startup (FIX.4.0:CLIENTX->BROKERX). Any and all pointers will be much appreciated! Thanks John -----Original Message----- From: David Monheit [mailto:Dav...@mo...] Sent: Friday, March 28, 2003 9:48 AM To: qui...@li... Subject: [Quickfix-developers] SessionNotFound Exception sending messages in Java Hi all, Coming along in QF. I saw some old threads which experienced this exact problem, ie, QF for Java has some problem finding the right session. Here is the scoop: There are 3 overrides to Session.sendToTarget a) sendToTarget(Message) b) sendToTarget(Message, SessionID) c) sendToTarget(Message, SenderCompID (string), SenderTargetID (string)) It turns out that no matter what I tried with c, I ALWAYS got SessionNotFound!!! I also noticed that if I set the following in the cfg file: SenderCompID=OrderEngine TargetCompID=monheit I got back a sessionID of "FIX.4.0:OrderEngine->monheit" on the C++ program, ie, executor. When I ran my order entry program in Java with a cfg of: SenderCompID=monheit TargetCompID=OrderEngine the sessionID was "FIX.4.0: monheit->OrderEngine" !!! Note the space in there!!!! The way I got it to work is by using override b, and sending the SessionID which I got on the order... I did not try method a yet. Need to have a look at why this is. Regards David ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers DISCLAIMER: This e-mail message and any attachments are intended solely for the use of the individual or entity to which it is addressed and may contain information that is confidential or legally privileged. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, copying or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately and permanently delete this message and any attachments. |