|
From: Toli K. <to...@ma...> - 2007-04-12 15:32:37
|
Mohammad, You can set the custom fields manually like this: msg.setField(new StringField(7777, "customValue")); Or you can use a type other than StringField. Keep in mind that if you want your message to validate, you'll need to modify the FIX4x.xml file appropriately and specify that in your settings where you specify the data dictionary file. Here's an example of a custom field we created: http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/core/src/main/java/org/marketcetera/quickfix/customfields/NoMarketDataSnapshots.java You can also look through our OrderLoader code to see how it handles cutsom fields and injects them into messages: http://trac.marketcetera.org/trac.fcgi/browser/platform/trunk/orderloader/src/main/java/org/marketcetera/orderloader Hope this helps. On 4/12/07, Mohammad Kamran Liaqat <kam...@gm...> wrote: > QuickFIX/J Documentation: > http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > Hi there!! > > I want to send some user-defined data in my fix message,e.g current customer > name,how can I create and send a user-defined field with my message? > > Thanks in advance, > Kamran. > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. |