Re: [Quickfix-developers] How to create Message from String in Java
Brought to you by:
orenmnero
From: Mike P. <mic...@ya...> - 2008-04-07 19:55:49
|
I've figured out a way to do this but I had to add a constructor to all of the fix4?.Message classes: For example: public Message(String msg) throws quickfix.InvalidMessage { super(msg); header = new Header( this ); trailer = new Trailer( this ); } Any chance that a constructor could be added to the version specific Message classes? Mike --- Mike Perik <mic...@ya...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: > http://www.quickfixengine.org/services.html > > The Java API allows you to create a quickfix.Message > from a string but none of the quickfix.fix4?.Message > classes allow that to happen. I need to be able to > create a FIX version specific Message from a > quickfix.Message. I guess I could iterate over the > generic Message objects fields and set them in the > fix > version specific object but that's not very > efficient. > > What I'm trying to do is take a FIX message string > and > create a Message object from it and then pass it to > a > cracker. > > The C++ API allows the creation of a FIX version > specific Message object (FIX4?.Message) from a > FIX::Message object but the Java API doesn't have > this > same functionality. > > Is there another way to do that? > > > > > > ____________________________________________________________________________________ > You rock. That's why Blockbuster's offering you one > month of Blockbuster Total Access, No Cost. > http://tc.deals.yahoo.com/tc/blockbuster/text5.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 > JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at > 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > 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 > ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com |