[QFJ-108] Session management, especially for Forex (example: Hotspot) Created: 16/Nov/06 Updated: 24/Jan/07 Resolved: 24/Jan/07 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | Engine |
Affects Version/s: | 1.0.4 |
Fix Version/s: | None |
Type: | Improvement | Priority: | Default |
Reporter: | Welf Wustlich | Assignee: | Steve Bate |
Resolution: | Not a bug | Votes: | 0 |
Labels: | None | ||
Environment: |
linux, netbeans |
Issue Links: |
|
Description |
First I have to say sorry, I have really tryed to make it short - but it became longer Its all about my problems doing (I think typical) session management with QFJ. Reffering to my last request "session management at application level" I have additional problems: My actual conclusion (I might be wrong) is, that when I need to cleanup the system in a session break, I need to restart the entire engine, because otherwise the logfiles are not created.
Best regards, Welf |
Comments |
Comment by Welf Wustlich [ 16/Nov/06 ] |
Well, after screening some code it seems there is a solution for one problem:
this could be used at application level to determine if the session should run or not. If somebody has done this or some good hints available this would help. Best regards, Welf |
Comment by Steve Bate [ 16/Nov/06 ] |
I forgot about that method being exposed. It's not intended for application usage, but it might work. Or there might be other side effects. I can't predict the results because I haven't tried it. If I were you, I'd shut down my servers during the break, do my log file management and end of day operations and restart the servers. The log files will still be open when you call cleanupMySystem() so on Windows, for example, the process will still be locking the file. Another option is that you could write your own file-based logger with special behavior if you have problems. Or you could use Log4J as the logger and use one of their rolling file appenders (see the Log4J documentation for more details). For question c), see the session configuration documentation. Set the start day/time and the end day/time. It's ok for the start time to be after the end time. For the earlier questions, I'd recommend posting these to the mailing list. Other people may have suggestions based on their own forex implementations. |