[Quickfix-developers] FileStore does not close files in Java wrapper
Brought to you by:
orenmnero
|
From: Yong-Jhen H. <yon...@al...> - 2006-06-06 01:37:43
|
Hi all, I maintain an application that uses quickfix Java wrapper to connect to a trading server, that program is expected to run 24 hours per day, actually, it is implemented as a Windows service. My problem is, the FileStore objects I use never close the four session files, hence the program cannot create a new session (and an usable FileStore object) every morning. After tracing the source, I find it might be a garbage collection issue, which is similar to bug#192: http://www.quickfixengine.org/bugtracker/bug.php?op=show&bugid=192 It is my point of view that depending on garbage collection (i.e, the finalize() method) to do necessary cleanup is not a good thing. Currently, I have a patch that do cleanup explicitly. But now the initiator still don't establish session with the server correctly, it continuously sends logout message instead. May anyone have similar usage scenario, or insight with this issue, give my some suggestion? My patch is also attached with this mail. Regards, yongjhen |