[QFJ-516] FileStore + set() + body file empty Created: 23/Apr/10  Updated: 20/Mar/11  Resolved: 20/Mar/11

Status: Closed
Project: QuickFIX/J
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Other Priority: Major
Reporter: Kamel Slimani Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Environment:

xp, sun sdk 1.5



 Description   

Hi,

i want to write (persist) a message (NewOrderSignle) using FileStore class and its set() method. The problem is that the file SESSION is well filled, while the BODY file remains empty !!! For information, the message i pass is valid, and the method FileStore.set(), when it calls the write() method of java.io.RandomAccessFile, the message is correct (not empty) ...
Any help please?



 Comments   
Comment by Steve Bate [ 23/Apr/10 ]

Unless you have a very special reason for doing it, you should not be persisting messages yourself using the FileStore. This is only for use by the Session implementation.

Comment by Kamel Slimani [ 23/Apr/10 ]

Thank you for the reply. That being said:
1/i need to store messages, then look for them, or to look (search) for a given contents (a given element) in one or several messages.
In addition to the file, I must define a cache system to store some messages.
2/A Data Base approach to store messages is not an option for me given my performance constraints (hence use of files rather than a DBMS).
3/ "Unless you have a very special reason for doing it, you should not be persisting messages yourself using the FileStore. This is only for use by the Session implementation. " : it does not explain why the call to the writeBytes method of java.io.RandomAccessFile write anything in this case.

Have you an explanation or indication for what I want to do please?

Generated at Tue May 07 03:51:52 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.