Re: [Quickfix-developers] How to create Message from String in Java
Brought to you by:
orenmnero
From: <or...@qu...> - 2008-04-07 20:30:50
|
<html><body>Yes, we can add these.<BR><BR> <BLOCKQUOTE style="PADDING-LEFT: 8px; MARGIN-LEFT: 8px; BORDER-LEFT: blue 2px solid" webmail="1">-------- Original Message --------<BR>Subject: Re: [Quickfix-developers] How to create Message from String in<BR>Java<BR>From: Mike Perik <mic...@ya...><BR>Date: Mon, April 07, 2008 2:55 pm<BR>To: <a href="mailto:qui...@li...">qui...@li...</a><BR><BR>QuickFIX Documentation: <A href="http://www.quickfixengine.org/quickfix/doc/html/index.html" target=_blank><a href="http://www.quickfixengine.org/quickfix/doc/html/index.html">http://www.quickfixengine.org/quickfix/doc/html/index.html</a></A><BR>QuickFIX Support: <A href="http://www.quickfixengine.org/services.html" target=_blank><a href="http://www.quickfixengine.org/services.html">http://www.quickfixengine.org/services.html</a></A><BR><BR>I've figured out a way to do this but I had to add a<BR>constructor to all of the fix4?.Message classes:<BR><BR>For example:<BR><BR>public Message(String msg) throws<BR>quickfix.InvalidMessage {<BR>super(msg);<BR>header = new Header( this );<BR>trailer = new Trailer( this );<BR>}<BR><BR>Any chance that a constructor could be added to the<BR>version specific Message classes?<BR><BR>Mike<BR><BR><BR><BR>--- Mike Perik <<A onclick="Popup.composeWindow('pcompose.php?sendto=michaelperik%40yahoo.com'); return false;" href="#Compose">michaelperik<B></B>@yahoo.com</A>> wrote:<BR><BR>> QuickFIX Documentation:<BR>><BR><A href="http://www.quickfixengine.org/quickfix/doc/html/index.html" target=_blank><a href="http://www.quickfixengine.org/quickfix/doc/html/index.html">http://www.quickfixengine.org/quickfix/doc/html/index.html</a></A><BR>> QuickFIX Support:<BR>> <A href="http://www.quickfixengine.org/services.html" target=_blank><a href="http://www.quickfixengine.org/services.html">http://www.quickfixengine.org/services.html</a></A><BR>> <BR>> The Java API allows you to create a quickfix.Message<BR>> from a string but none of the quickfix.fix4?.Message<BR>> classes allow that to happen. I need to be able to<BR>> create a FIX version specific Message from a<BR>> quickfix.Message. I guess I could iterate over the<BR>> generic Message objects fields and set them in the<BR>> fix<BR>> version specific object but that's not very<BR>> efficient.<BR>> <BR>> What I'm trying to do is take a FIX message string<BR>> and<BR>> create a Message object from it and then pass it to<BR>> a<BR>> cracker. <BR>> <BR>> The C++ API allows the creation of a FIX version<BR>> specific Message object (FIX4?.Message) from a<BR>> FIX::Message object but the Java API doesn't have<BR>> this<BR>> same functionality.<BR>> <BR>> Is there another way to do that?<BR>> <BR>> <BR>> <BR>> <BR>> <BR>><BR>____________________________________________________________________________________<BR>> You rock. That's why Blockbuster's offering you one<BR>> month of Blockbuster Total Access, No Cost. <BR>> <A href="http://tc.deals.yahoo.com/tc/blockbuster/text5.com" target=_blank><a href="http://tc.deals.yahoo.com/tc/blockbuster/text5.com">http://tc.deals.yahoo.com/tc/blockbuster/text5.com</a></A><BR>> <BR>><BR>-------------------------------------------------------------------------<BR>> This <a href="http://SF.net">SF.net</a> email is sponsored by the 2008<BR>> JavaOne(SM) Conference <BR>> Register now and save $200. Hurry, offer ends at<BR>> 11:59 p.m., <BR>> Monday, April 7! Use priority code J8TLD2. <BR>><BR><A href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone" target=_blank><a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a></A><BR>> _______________________________________________<BR>> Quickfix-developers mailing list<BR>> <A onclick="Popup.composeWindow('pcompose.php?sendto=Quickfix-developers%40lists.sourceforge.net'); return false;" href="#Compose">Quickfix-developers<B></B>@lists.sourceforge.net</A><BR>><BR><A href="https://lists.sourceforge.net/lists/listinfo/quickfix-developers" target=_blank><a href="https://lists.sourceforge.net/lists/listinfo/quickfix-developers">https://lists.sourceforge.net/lists/listinfo/quickfix-developers</a></A><BR>> <BR><BR><BR><BR>____________________________________________________________________________________<BR>You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. <BR><A href="http://tc.deals.yahoo.com/tc/blockbuster/text5.com" target=_blank><a href="http://tc.deals.yahoo.com/tc/blockbuster/text5.com">http://tc.deals.yahoo.com/tc/blockbuster/text5.com</a></A><BR><BR>-------------------------------------------------------------------------<BR>This <a href="http://SF.net">SF.net</a> email is sponsored by the 2008 JavaOne(SM) Conference <BR>Register now and save $200. Hurry, offer ends at 11:59 p.m., <BR>Monday, April 7! Use priority code J8TLD2. <BR><A href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone" target=_blank><a href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a></A><BR>_______________________________________________<BR>Quickfix-developers mailing list<BR><A onclick="Popup.composeWindow('pcompose.php?sendto=Quickfix-developers%40lists.sourceforge.net'); return false;" href="#Compose">Quickfix-developers<B></B>@lists.sourceforge.net</A><BR><A href="https://lists.sourceforge.net/lists/listinfo/quickfix-developers" target=_blank><a href="https://lists.sourceforge.net/lists/listinfo/quickfix-developers">https://lists.sourceforge.net/lists/listinfo/quickfix-developers</a></A><BR></BLOCKQUOTE></body></html> |