|
From: Jeff S. <jsc...@cq...> - 2007-08-07 12:53:45
|
Here is my code:
InputStream inputStream = new
FileInputStream("res/quickfixj.cfg");
SessionSettings settings = new SessionSettings(inputStream);
//MessageStoreFactory messageStoreFactory = new
FileStoreFactory(settings);
MessageStoreFactory messageStoreFactory = new
JdbcStoreFactory(settings);
LogFactory logFactory = new ScreenLogFactory(true, true, true);
MessageFactory messageFactory = new DefaultMessageFactory();
Initiator initiator = new SocketInitiator(application,
messageStoreFactory, settings, logFactory,
messageFactory);
and this is quickfixj.cfg
[default]
#FileStorePath=output/data/client
BeginString=FIX.4.2
ConnectionType=initiator
JdbcDriver=com.mysql.jdbc.Driver
JdbcURL=jdbc:mysql://db/quickfixdev
JdbcUser=user
JdbcPassword=pass
JdbcLogHeartBeats=N
As you can see, I am not doing anything out of the ordinary. There is
no log file.
The database is full of my heartbeat messages and the orders I am
placing. Nothing is being logged for incoming messages.
I am willing to fix this either by configuration or by coding on the
messageStoreFactory.
thanks,
Jeff
Steve Bate wrote:
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
> Hi Jeff,
>
> It should work. It's difficult to know what is causing your problems
> with the limited information you've provided. You don't have any log
> file messages from QFJ or your database that can give a hint?
>
> Regards,
>
> Steve
>
>
>> -----Original Message-----
>> From: qui...@li... [mailto:quickfixj-
>> use...@li...] On Behalf Of Jeff Schwartz
>> Sent: Monday, August 06, 2007 1:59 PM
>> To: qui...@li...
>> Subject: [Quickfixj-users] JDBC storage not working properly
>>
>> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>> QuickFIX/J Support: http://www.quickfixj.org/support/
>> I am using the JDBC message store and logging.
>> I set the JdbcLogHeartBeats to N, but I still get all the heartbeat
>> messages stored in my DB.
>> Also, I am only seeing my outbound messages stored. I want to record
>> all non-heartbeat messages going out and coming into my application.
>> Can anyone help me?
>>
>> Thanks,
>> Jeff
>>
>> --
>> Jeff Schwartz
>> Senior Programmer
>> Cornerstone Quantitative Investment Group
>> 203-327-0888
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems? Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> Quickfixj-users mailing list
>> Qui...@li...
>> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Quickfixj-users mailing list
> Qui...@li...
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
>
--
Jeff Schwartz
Senior Programmer
Cornerstone Quantitative Investment Group
203-327-0888
|