Re: [Quickfix-developers] SenderSubID/TargetSubID
Brought to you by:
orenmnero
From: Shane T. <str...@co...> - 2008-04-29 19:22:48
|
John, Within your toAdmin() function do something like this and they will be appended to all messages. The CME requires this. public void toAdmin(QuickFix.Message message, QuickFix.SessionID sessionID) { message.getHeader().setField(new SenderSubID("ID")); message.getHeader().setField(new TargetSubID("ID")); } -- Shane Trotter Connamara Systems, LLC On Tue, Apr 29, 2008 at 2:16 PM, John Haldi <jr...@ya...> wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > > > > I need to connect to an exchange that requires SenderSubID and TargetSubID to be set on *all* messages -- i.e. admin messages as well as app messages. > > I've done this in the past on actual orders which I create in my app by setting the fields individually by pullling the header and setting the fields, but I've never tried to stitch them into my app such that they are inserted into the logon messages, sequencing messages, etc. > > What's the "path of least resistance" to accomplish this? I was hoping that these might be fields I could set in the quickfix settings file, but it seems like this is a no-go. Could somebody recommend the easiest way to accomplish this? > > Thanks, > > John > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |