[QFJ-486] How can i keep right tag order when i parse fix message Created: 25/Nov/09  Updated: 20/Mar/11  Resolved: 20/Mar/11

Status: Closed
Project: QuickFIX/J
Component/s: None
Affects Version/s: 1.4.0
Fix Version/s: None

Type: Other Priority: Default
Reporter: kesler.wang Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Environment:

JDK5.0



 Description   

Hi:
I met a problem when I parse fix message by quickfixj. I refer an example from here http://www.quickfixj.org/confluence/display/qfj/Using+Message+Metadata
So according to this example, I use FieldMap.iterator() to get all of the tag elements from message object, but when i loop the iterator, i find the tag order is not correct. Like the example, the tag "MsgType" is fourth, but fix protocol define it should be third.
So could you tell me how to keep the right order, or other way to create new Message when i get all of tag elements parsed by FieldMap.iterator().

My test fix message : 8=FIX.4.4\0019=263\00135=s\00149=CLIENT\00156=ASX\00134=287 ......
output result : 8=FIX.4.4\0019=263\00134=287\00135=s\00149=CLIENT......

I'm not native english speaker, i'm not sure i describe the question clearly, if you have any question, please let me know. Thank you very much.

Kind Regards
Kelser.Wang


Generated at Sat Nov 23 12:40:54 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.