|
From: Øyvind M. W. <oyv...@om...> - 2018-06-28 15:14:55
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-signature">The code looks correct. Have you checked
the log files?<br>
<br>
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.<br>
<br>
<br>
<title></title>
<font face="Verdana"><small>Best regards<br>
<br>
<b><font color="#003366">Øyvind Matheson Wergeland</font></b><br>
CTO</small><br>
<small>
<br>
Mobile: (+47) 95 16 16 88<br>
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:oyv...@om...">oyv...@om...</a><br>
<br>
<b><font color="#003366">Oslo Market Solutions</font></b><br>
PO Box 4, 0051 Oslo, Norway<br>
Telephone: (+47) 40 00 23 13<br>
<a class="moz-txt-link-abbreviated" href="http://www.oms.no">www.oms.no</a></small><br>
</font>
</div>
<div class="moz-cite-prefix">On 06/28/2018 10:01 AM, Vamsi
Pinnamaneni wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAF...@ma...">
<pre wrap="">QuickFIX/J Documentation: <a class="moz-txt-link-freetext" href="http://www.quickfixj.org/documentation/">http://www.quickfixj.org/documentation/</a>
QuickFIX/J Support: <a class="moz-txt-link-freetext" href="http://www.quickfixj.org/support/">http://www.quickfixj.org/support/</a>
</pre>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<div dir="ltr">Hi Team,
<div><br>
</div>
<div>Thanks for you sample code.before implementing that ,the
callback method <b>"fromApp" </b>is not calling.i attached
all two java files of my code .please check what was wrong?</div>
<div><br>
</div>
<div>Plesase find the attachment.Thanks in advance.Please help
me.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jun 27, 2018 at 7:13 PM, Colin
DuPlantis <span dir="ltr"><<a
href="mailto:co...@ma..." target="_blank"
moz-do-not-send="true">co...@ma...</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class="">QuickFIX/J Documentation: <a
href="http://www.quickfixj.org/documentation/"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.quickfixj.org/docum<wbr>entation/</a><br>
QuickFIX/J Support: <a
href="http://www.quickfixj.org/support/"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.quickfixj.org/suppo<wbr>rt/</a><br>
<br>
<br>
</span>
resending after trimming length:<br>
<br>
<br>
On 06/27/2018 06:42 AM, Colin DuPlantis wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<br>
<br>
List<Group> mdEntries =
messageFactory.getMdEntriesFro<wbr>mMessage(message);<br>
for(Group mdEntry : mdEntries) {<br>
char entryType =
mdEntry.getChar(quickfix.field<wbr>.MDEntryType.FIELD);<br>
switch(entryType) {<br>
case quickfix.field.MDEntryType.BID<wbr>:<br>
mdEntry.getDecimal(<a href="http://quickfix.fi"
moz-do-not-send="true">quickfix.fi</a><wbr>eld.MDEntryPx.FIELD);<br>
<br>
/**<br>
* Get the MDEntry groups from the given message.<br>
*<br>
* @param inMessage a <code>Message</code>
value<br>
* @return a
<code>List&lt:Group&gt;</code> value<br>
* @throws FieldNotFound if the groups could not be
extracted<br>
*/<br>
public List<Group>
getMdEntriesFromMessage(Messag<wbr>e inMessage)<br>
throws FieldNotFound<br>
{<br>
List<Group> mdEntries =
Lists.newArrayList();<br>
int noMdEntries = inMessage.getInt(quickfix.fiel<wbr>d.NoMDEntries.FIELD);<br>
for(int i=1;i<=noMdEntries;i++) {<br>
Group mdEntryGroup =
createGroup(inMessage.getHeade<wbr>r().getString(quickfix.field.<wbr>MsgType.FIELD),<br>
quickfix.field.NoMDEntries.FIE<wbr>LD);<br>
mdEntryGroup = inMessage.getGroup(i,<br>
mdEntryGroup);<br>
mdEntries.add(mdEntryGroup);<br>
}<br>
return mdEntries;<br>
}<br>
<br>
/** Creates a group based on the specified container
message and group id */<br>
public Group createGroup(String msgType, int groupID)<br>
{<br>
return msgFactory.create(beginString, msgType,
groupID);<br>
}<br>
</blockquote>
<div class="HOEnZb">
<div class="h5">
<br>
<br>
------------------------------<wbr>------------------------------<wbr>------------------<br>
Check out the vibrant tech community on one of the
world's most<br>
engaging tech sites, Slashdot.org! <a
href="http://sdm.link/slashdot" rel="noreferrer"
target="_blank" moz-do-not-send="true">http://sdm.link/slashdot</a><br>
______________________________<wbr>_________________<br>
Quickfixj-users mailing list<br>
<a href="mailto:Qui...@li..."
target="_blank" moz-do-not-send="true">Qui...@li...<wbr>rge.net</a><br>
<a
href="https://lists.sourceforge.net/lists/listinfo/quickfixj-users"
rel="noreferrer" target="_blank"
moz-do-not-send="true">https://lists.sourceforge.net/<wbr>lists/listinfo/quickfixj-users</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div><span
style="color:rgb(136,136,136);font-family:Arial,sans-serif;font-size:x-small;line-height:13.5533px">Regards,<br>
</span></div>
<div><span
style="color:rgb(136,136,136);font-family:Arial,sans-serif;font-size:x-small;line-height:13.5533px">Vamsi
Krishna Pinnamaneni<br>
</span></div>
<div dir="ltr"><span
style="color:rgb(136,136,136);font-family:Arial,sans-serif;font-size:x-small;line-height:13.5533px"><br>
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.</span><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! <a class="moz-txt-link-freetext" href="http://sdm.link/slashdot">http://sdm.link/slashdot</a></pre>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Quickfixj-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qui...@li...">Qui...@li...</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/quickfixj-users">https://lists.sourceforge.net/lists/listinfo/quickfixj-users</a>
</pre>
</blockquote>
<br>
</body>
</html>
|