« Return to Thread: FIX Session Dropped

FIX Session Dropped

by Nick Fortescue-3 :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html




A simpler way of doing this would be for the Fix application to hand each message on to a queue, which is then fetched from by a worker thread which does the work. That way you only need one extra thread. Be aware this will add a bit of latency to your application, it isn't a no brainer.
 
If you are using java 5 there are some nice classes in java.util.concurrent to help you manage the concurrency issues. Try looking at LinkedBlockingQueue or ConcurrentLinkedQueue depending on your design.
 
Nick
 
On 12/4/06, Nick Volpe <niv.tr@...> wrote:


I'm using QF 1.11.0 for Java.  I've implemented a class that extends quickfix.MessageCracker and implements quickfix.Application.  In my implementation, each FIX application message I receive needs to update certain records in the DB behind my investment management system.  I've noticed that on rare occasions, this can take up to a minute and prevents my application from sending heartbeat messages.  This results in my counterparty sending a test request, which I'm unable to process, since my application is still busy trying to update my database, which then causes the counterparty to drop the FIX session.

Does anyone have any suggestions how to manage this?  I thought of spawning a new thread for each FIX application message I receive, which would process the message, but is there a better way?

Thanks

Nik

**************************************************************************************************************

This email and any files transmitted with it are confidential and

intended solely for the use of the individual or entity to whom they

are addressed. Any unauthorized use of the information contained

in this email or its attachments is prohibited. If this email is received in

error, please contact the sender and delete the material from your

computer systems. Do not use, copy, or disclose the contents of this

email or any attachments.

Abu Dhabi Investment Authority (ADIA) accepts no responsibility for

the content of this email to the extent that the same consists of

statements and opinions made which are the senders own and not

made on behalf of ADIA. Nor does ADIA accept any liability for any

errors or omissions in the content of this email caused by electronic

and technical failures.

Although ADIA has taken reasonable precautions to ensure that no

viruses are present in this email, ADIA accepts no responsibility for

any loss or damage arising from the use of this email or its

attachments.

**************************************************************************************************************

 


-------------------------------------------------------------------------
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

_______________________________________________
Quickfix-developers mailing list
Quickfix-developers@...
https://lists.sourceforge.net/lists/listinfo/quickfix-developers



-------------------------------------------------------------------------
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
_______________________________________________
Quickfix-developers mailing list
Quickfix-developers@...
https://lists.sourceforge.net/lists/listinfo/quickfix-developers

 « Return to Thread: FIX Session Dropped