|
From: Naresh B. <NB...@sa...> - 2007-03-28 23:39:01
|
Hi,
=20
I am just starting out with QuickFIX/J and was wondering if the
DataDictionary can be used to create messages. I want to use a different
DataDictionary for every targetComp in my system - these dictionaries
will store customizations for each targetComp. I have two questions:
=20
1) Given a message name (e.g. "NewOrderSingle"), how can I get the
msgType (e.g. "D") using the DataDictionary? I do not readily see an
method to do this.
=20
2) Is it safe to create fields using code like new ClOrdID("321")? I see
that the constructor of ClOrdID hard codes the field tag to "11". Are
these tags values same across all FIX versions? I am thinking of this
alternate approach to pick up the tag value from the data dictionary -
does it make sense or is it needlessly complicated?
=20
new StringField(dd.getFieldTag("ClOrdID"), "321")
=20
Thanks.
Naresh
=20
|