Re: [Quickfix-developers] SessionNotFound Exception sending messages in Java
Brought to you by:
orenmnero
|
From: peter k. <kra...@ho...> - 2003-04-22 22:41:59
|
RE: [Quickfix-developers] SessionNotFound Exception sending messages in =
JavaI think you need to specify whether it an initiator or an acceptor =
in your cfg file... (Suggestion for improvement: have the cfg parser =
through exceptions when info is missing.)
Thanks,
Peter
----- Original Message -----=20
From: Rattinger, John=20
To: 'Dav...@mo...' ; =
qui...@li...=20
Sent: Tuesday, April 22, 2003 2:36 PM
Subject: RE: [Quickfix-developers] SessionNotFound Exception sending =
messages in Java
Hello,=20
Help! I'm not even getting as far as Dave did below.=20
I've created a little C++ test app that will send test orders=20
out to a broker. I have more or less cloned the tradeclient=20
example. I can start up a session and connect=20
to the broker and all appears to be well - logon, hearbeat,...=20
my config file looks like this;=20
[SESSION]=20
BeginString=3DFIX.4.0=20
SenderCompID=3DCLIENTX=20
TargetCompID=3DBROKERX=20
When I try to send an order via "sendToTarget", I always get the=20
error "Session Not Found". I have tried all variations of the=20
sendToTarget method. If I retrieve the sessionId via=20
order.getSessionID(), I always get the same Id I get when the=20
session is created at startup (FIX.4.0:CLIENTX->BROKERX).=20
Any and all pointers will be much appreciated!=20
Thanks=20
John=20
-----Original Message-----=20
From: David Monheit [mailto:Dav...@mo...]=20
Sent: Friday, March 28, 2003 9:48 AM=20
To: qui...@li...=20
Subject: [Quickfix-developers] SessionNotFound Exception sending=20
messages in Java=20
Hi all,=20
Coming along in QF. I saw some old threads which experienced this =
exact=20
problem, ie, QF for Java has some problem finding the right session.=20
Here is the scoop:=20
There are 3 overrides to Session.sendToTarget=20
a) sendToTarget(Message)=20
b) sendToTarget(Message, SessionID)=20
c) sendToTarget(Message, SenderCompID (string), SenderTargetID =
(string))=20
It turns out that no matter what I tried with c, I ALWAYS got=20
SessionNotFound!!! I also noticed that if I set the following in the=20
cfg file:=20
SenderCompID=3DOrderEngine=20
TargetCompID=3Dmonheit=20
I got back a sessionID of "FIX.4.0:OrderEngine->monheit" on the C++=20
program, ie, executor. When I ran my order entry program in Java with =
a=20
cfg of:=20
SenderCompID=3Dmonheit=20
TargetCompID=3DOrderEngine=20
the sessionID was "FIX.4.0: monheit->OrderEngine" !!! Note the space =
in=20
there!!!!=20
The way I got it to work is by using override b, and sending the=20
SessionID which I got on the order...=20
I did not try method a yet.=20
Need to have a look at why this is.=20
Regards=20
David=20
-------------------------------------------------------=20
This SF.net email is sponsored by:=20
The Definitive IT and Networking Event. Be There!=20
NetWorld+Interop Las Vegas 2003 -- Register today!=20
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en=20
_______________________________________________=20
Quickfix-developers mailing list=20
Qui...@li...=20
https://lists.sourceforge.net/lists/listinfo/quickfix-developers=20
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.=20
|