|
From: Vamsi P. <vam...@we...> - 2018-07-02 06:58:31
|
Hi Team, Please find the below logs. i am unable to figure out why control is not coming to fromApp method. logs............................... 20180702-06:53:06: Session FIX.4.4:WOB->BSC schedule is weekly, SUN 00:00:00-UTC - FRI 00:00:00-UTC 20180702-06:53:06: Created session: FIX.4.4:WOB->BSC 20180702-06:53:06: Configured socket addresses for session: [/ 10.21.188.240:2369] 20180702-06:53:06: MINA session created: local=/10.21.188.242:41668, class org.apache.mina.transport.socket.nio.NioSocketSession, remote=/ 10.21.188.240:2369 20180702-06:53:07: Initiated logon request 20180702-06:53:07: Logon contains ResetSeqNumFlag=Y, resetting sequence numbers to 1 20180702-06:53:07: Received logon 20180702-06:53:07: Disconnecting: Forcibly disconnecting session .......................................................................... messages log is 8=FIX.4.4 9=62 35=A 34=1 49=WOB 52=20180702-06:53:06.560 56=BSC 108=30 141=Y 10=015 8=FIX.4.4 9=67 35=A 34=1 49=WOB 52=20180702-06:53:07.545 56=BSC 98=0 108=30 141=Y 10=247 8=FIX.4.4 9=73 35=A 34=1 49=BSC 52=20180702-06:54:23.156 56=WOB 369=0 98=0 108=30 141=Y 10=001 8=FIX.4.4 9=119 35=V 34=2 49=WOB 52=20180702-06:53:07.586 56=BSC 262=MDRQ-1530514387572 263=0 264=1 265=0 146=1 55=USD/VND 267=1 269=1 10=200 Please help me.thanks in advance. On Thu, Jun 28, 2018 at 8:44 PM, Øyvind Matheson Wergeland < oyv...@om...> wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > > The code looks correct. Have you checked the log files? > > Note that fromApp should be very fast, like only put the message on some > other queue and then return. Actual message handling must be done in > another thread, otherwise you block receiving messages. But you can worry > about that when you actually receive messages. > > > Best regards > > *Øyvind Matheson Wergeland* > CTO > > Mobile: (+47) 95 16 16 88 > E-mail: oyv...@om... > > *Oslo Market Solutions* > PO Box 4, 0051 Oslo, Norway > Telephone: (+47) 40 00 23 13 > www.oms.no > On 06/28/2018 10:01 AM, Vamsi Pinnamaneni wrote: > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > > Hi Team, > > Thanks for you sample code.before implementing that ,the callback method *"fromApp" > *is not calling.i attached all two java files of my code .please check > what was wrong? > > Plesase find the attachment.Thanks in advance.Please help me. > > On Wed, Jun 27, 2018 at 7:13 PM, Colin DuPlantis <co...@ma...> > wrote: > >> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >> QuickFIX/J Support: http://www.quickfixj.org/support/ >> >> >> resending after trimming length: >> >> >> On 06/27/2018 06:42 AM, Colin DuPlantis wrote: >> >>> Here's a code snippet we use to retrieve the price from a market data >>> message. I've also included a few helper methods. I omitted a lot of code >>> that isn't relevant to your question. >>> >>> List<Group> mdEntries = messageFactory.getMdEntriesFro >>> mMessage(message); >>> for(Group mdEntry : mdEntries) { >>> char entryType = mdEntry.getChar(quickfix.field >>> .MDEntryType.FIELD); >>> switch(entryType) { >>> case quickfix.field.MDEntryType.BID: >>> mdEntry.getDecimal(quickfix.field.MDEntryPx.FIELD); >>> >>> /** >>> * Get the MDEntry groups from the given message. >>> * >>> * @param inMessage a <code>Message</code> value >>> * @return a <code>List<:Group></code> value >>> * @throws FieldNotFound if the groups could not be extracted >>> */ >>> public List<Group> getMdEntriesFromMessage(Message inMessage) >>> throws FieldNotFound >>> { >>> List<Group> mdEntries = Lists.newArrayList(); >>> int noMdEntries = inMessage.getInt(quickfix.fiel >>> d.NoMDEntries.FIELD); >>> for(int i=1;i<=noMdEntries;i++) { >>> Group mdEntryGroup = createGroup(inMessage.getHeade >>> r().getString(quickfix.field.MsgType.FIELD), >>> quickfix.field.NoMDEntries.FIELD); >>> mdEntryGroup = inMessage.getGroup(i, >>> mdEntryGroup); >>> mdEntries.add(mdEntryGroup); >>> } >>> return mdEntries; >>> } >>> >>> /** Creates a group based on the specified container message and >>> group id */ >>> public Group createGroup(String msgType, int groupID) >>> { >>> return msgFactory.create(beginString, msgType, groupID); >>> } >>> >> >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> Quickfixj-users mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >> > > > > -- > Regards, > Vamsi Krishna Pinnamaneni > > The information contained in this message may be confidential and is > intended for the addressee only. If you don't think this email is meant for > you, please let us know. Do not copy or forward the information it > contains, and delete this email from your system. Any personal views or > opinions are those of the author and do not necessarily represent those of > Wealth Objects Limited. This email does not create or vary any contractual > obligations between Wealth Objects Limited and the addressee. > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Quickfixj-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/quickfixj-users > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > -- Regards, Vamsi Krishna Pinnamaneni The information contained in this message may be confidential and is intended for the addressee only. If you don't think this email is meant for you, please let us know. Do not copy or forward the information it contains, and delete this email from your system. Any personal views or opinions are those of the author and do not necessarily represent those of Wealth Objects Limited. This email does not create or vary any contractual obligations between Wealth Objects Limited and the addressee. |