如何在QuickFIX/J中对外发消息中的字段进行排序 [英] How to order fields in outgoing messages in QuickFIX/J

查看:394
本文介绍了如何在QuickFIX/J中对外发消息中的字段进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在不重建QuickFIX/J的情况下对外发消息中的字段进行排序?还是任何可用的配置标志,它可以根据我们可能使用某些路径标志设置的任何验证文件对消息进行排序?

Is there any way to order fields in outgoing messages without rebuilding QuickFIX/J? Or any configuration flag available which orders messages according to any validation file that we might set using some path flag?

推荐答案

请参见

See the QuickFIX/J User FAQ, topic "I altered my data dictionary. Should I regenerate/rebuild QF/J?". Specifically following excerpts:

如果您的DD更改不是很广泛,也许只是几个字段更改,那么您就不需要了.如果添加了全新的自定义消息类型,则可能应该这样做.如果您更改了重复组内的现场订单,那么我建议您这样做,尤其是当这些组更改是在外发邮件中时.

If your DD changes aren't very extensive, maybe just a few field changes, then you don't really need to. If you added a whole new custom message type, then you probably should. If you changed field orders inside of repeating groups, then I recommend that you do, especially if those group changes are in outgoing messages.

还有

外发MSGS:构造外发消息时,DD xml文件不相关.您几乎可以使用通用字段设置器(setString,setInt等)将所需的任何字段添加到消息中,而QF可以让您完成.唯一的麻烦是重复组. QF将根据用于代码生成的DD编写重复的组元素排序.如果您更改了外发邮件中的任何组,则肯定需要重建.

OUTGOING MSGS: The DD xml file is irrelevant when you construct outgoing messages. You can pretty much add whatever fields you want to messages using the generic field setters (setString, setInt, etc) and QF will let you. The only trouble is with repeating groups. QF will write repeating group element ordering according to the DD that was used for code generation. If you altered any groups that are part of outgoing messages, you DEFINITELY need to rebuild.

根据我从该常见问题解答条目中收集的信息,除非重新排序在重复的组内,否则您不应该为传出的邮件进行重建.如果您在重复的组中更改字段顺序,则进行重建.

From what I gather from this FAQ entry, you should not rebuild for outgoing messages unless the reordering is within repeating groups. In case you change field order in repeating groups you should rebuild.

在任何情况下,都可以通过在字典中的消息中对字段进行混洗来进行测试,然后在配置中引用自定义字典,然后记录由QuikFIX/J引擎生成的消息,这很容易.

In any case it's easy to test by shuffling fields around in a message in the dictionary, refer to it the custom dictionary in your configuration, then log the message generated by the QuikFIX/J engine.

这篇关于如何在QuickFIX/J中对外发消息中的字段进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆