|
From: Mohammad K. L. <kam...@gm...> - 2007-03-27 06:57:27
|
Hi Joerg! Thanks for your help,,where can I see the order sent??In the msgs log file,right??but can't see anything there...can u plz help me out?? The bad luck is that initially the messages log file was showing at least error free data but now it shows me a "Required Tag Missing" enrty,,stuck friend.. Hope you'll respond promptly... Thanks again... On 3/26/07, Joerg Thoennes <Joe...@ma...> wrote: > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > Hi Mohammad, > > On 03/26/2007 08:32 AM, Mohammad Kamran Liaqat wrote: > > I want to send some data with my message which I have dug out from my > > database.How can I attach with my message?? > > Here's my code,, > > > > > > * Message message =3D new Message(); > > quickfix.Message.Header header =3D message.getHeader(); > > header.setField(new BeginString("FIX.4.2")); > > header.setField(new SenderCompID("client1")); > > header.setField(new TargetCompID("ifkaar")); > > header.setField(new MsgType("D")); > > message.setField(new HeartBtInt(30)); > > message.setField(new EncryptMethod()); > > Session.sendToTarget(message);* > > ** > > now I wanna attach few String components with my message,,,e.g String > > amount,String account etc. Can anybody help me with how to go about it?= ? > > Did you check the "Sending messages" part of the QuickFIX/J docs: > > http://www.quickfixj.org/quickfixj/usermanual/usage/sending_messages.html > > The best approach would be the section "Most Type Safe... DO THIS!": > > import quickfix.fix42.NewOrderSingle; > ... > NewOrderSingle order =3D new NewOrderSingle(); > ... > order.set( new Account( "aaa" ) ); > order.set( new OrderQty( 2000 ) ); > > Please be careful converting double values to String and back (you could > get unexpected .9999... in > the decimal place). Alternatively, you can set the string directly: > > order.setString( OrderQty.FIELD, "2000" ); > > Cheers, J=F6rg > > -- > Joerg Thoennes > http://www.macd.com Tel.: +49 (0)241 44597-24 > Macdonald Associates GmbH Gesch=E4ftsf=FChrer: Roger Macdonald > Lothringer Str. 52, D-52070 Aachen Amtsgericht Aachen, HRB 8151, Ust.-Id > DE813021663 > > ------------------------------------------------------------------------- > 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=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > |