Search code examples
quickfixfix-protocolquickfixjcamel-quickfix

How to ignore the TargetSubID for the session key of a QuickFix session?


Based on my other question, I would like to ignore the TargetSubID when it is sent. The following configuration is available:

BeginString=FIX.4.4
SenderCompID=Sender
TargetCompID=Target

And if the source system sends a TargetSubID "Sub", the following error occurs:

Unknown session: FIX.4.4:Sender->Target/Sub

Is it possible to tell QuickFix that it should use FIX.4.4:Sender->Target configuration and send the TargetSubID anyway?


Solution

  • I am using camel-quickfix so here is the answer for this one. You can set the parameter sessionID for the quickfix consumer and producer, so that the FIX message with TargetSubID will be send using the Session without TargetSubID.

    Consumer

    <from uri="quickfix:config?sessionID=FIX4.4:Sender->Target" />
    

    Producer

    <to uri="quickfix:config?sessionID=FIX.4.4:Sender->Target" />