[Quickfix-developers] how to send messages
Brought to you by:
orenmnero
|
From: <li...@ho...> - 2006-07-21 14:27:24
|
Hi all,
I have an application that opens 2 SocketInitiator, one for reading public
information (siReading, I send a MarketDataSnapshotFullRefresh message) and
another for private information (siOperations, my operations).
I have 2 instances of my class Application (that inherits from
MessageCracker and implements Application interface). I am using following
sentence to send messages:
sendToTarget(message,sessionId)
where sessionID is a variable that I fill in onCreate function with the
sessionID parameter.
My problem is that messages sent for both socketinitiator are mixed, I send
a MarketDataRequest in siReading but the message is send throught the other
session because I found it in the operating log.
The only difference between both socketinitiators are the SenderSubID (one
is 351 and the other 352), but this field is not in the sessionId and I
suppose that this is the problem. I am connecting to the same market but
with different operator code (sendersubid)
Anybody knows how to identificate the different sessions with different
SenderSubId?
Lidia
|