[Quickfix-developers] Re: tradeclient to executor...
Brought to you by:
orenmnero
|
From: Alexandre H. <a....@ca...> - 2003-02-21 10:29:17
|
Regarding Nicholas Palmer's post:
I am trying to do the same (in Java), that is: to create a session between a
buy-side agent and a sell-side agent and get one send a message to the
other.
I can get both sides log on to the same session too, but cannot have a
message sent between them.
Here is how I have tried. I have modified the "onRun" method, in the
Application that corresponds to the trader.
But I get a "SessionNotFound" exception.
=========
public void onRun() {
try { Thread.sleep(10000);}
catch(Exception e) {}
org.quickfix.fix42.NewOrderSingle message01 = new
org.quickfix.fix42.NewOrderSingle( new ClOrdID(),
new HandlInst(),
new Symbol(),
new Side(),
new TransactTime(),
new OrdType());
try {Session.sendToTarget(message01, "LeTrader",
"LeBroker");}
catch (Exception e) {System.out.println(e.toString());}
while(true) {
try {
Thread.sleep(1000);
} catch(Exception e) {}
}
}
=========
Does anybody have an idea about what's wrong ?
Nick, did you try something similar ?
Thanks,
Alexandre
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------
I am trying to understand how quickfix works, and so I have been running
through the examples. I am able to get the tradeclient to logon to the
executor properly, and the heartbeat is going between the two, but I
can't seem to get the tradeclient to send a message.
When it tries to send the message I get "Message not sent: Session not
Found." I have tried entering the Sender and Target IDs both ways, with
the same results, and am using the same begin string as is in the
session stuff, so I am stumped.
Any help would be appreciated.
Thanks,
-Nick
----------------------------------------------------------------------------
----------------------------------------------------------------------------
--------
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Confidentiality Notice :
The information contained in this e-mail message is intended only for the
personal and confidential use of the recipient(s) named above. If the reader
of this message is not the intended recipient or an agent responsible for
delivering it to the intended recipient, you are hereby notified that you
have received this document in error and that any review, dissemination,
distribution, or copying of this message is strictly prohibited. If you have
received this communication in error, please notify pos...@ca...
immediately by e-mail, and delete the original message.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|