[Quickfix-developers] Quickfix/J
Brought to you by:
orenmnero
|
From: Andrew M. <an...@nm...> - 2005-08-15 18:45:25
|
Hi,
I am having a problem w/moving to QuickFix/J. My Configuration works fine
with the JNI version. To change to /J I did this:
1) remove System.loadLibrary("quickfix_jni");
2) remove quickfix.jar from classpath
3) add to classpath
C:/quickfixj/lib/quickfixj.jar
C:/quickfixj/lib/backport-util-concurrent-2.0.jar
C:/quickfixj/lib/commons-logging-1.0.4.jar
C:/quickfixj/lib/quickfixj.jar
C:/quickfixj/lib/tl-netty2-1.8.0.jar
4) rebuilt the app even though I don't expect I should have to do
this since the APIs are the same.
I get no exceptions. The initiator object is being created ok. No files
are created on the drive (sessions, etc.). A JPG of the object when
running in JBuilder is here:
http://www.nmedia.net/~andrew/qf.JPG
SessionSettings settings = null;
try {
settings = new SessionSettings(new FileInputStream(cfgFile));
}
catch (FileNotFoundException ex1) {
logger.error(ex1);
}
catch (ConfigError ex2) {
logger.error(ex2);
}
MessageStoreFactory messageStoreFactory = new
FileStoreFactory(settings);
LogFactory logFactory = new FileLogFactory(settings);
MessageFactory messageFactory = new DefaultMessageFactory();
try {
initiator = new SocketInitiator(application,
messageStoreFactory,
settings,
logFactory,
messageFactory);
}
catch (ConfigError ex1) {
ex1.printStackTrace();
}
[DEFAULT]
ConnectionType=initiator
HeartBtInt=30
FileStorePath=store_prod
FileLogPath=store_prod
StartTime=00:00:00
EndTime=00:00:00
UseDataDictionary=N
SocketConnectHost=c4
SocketConnectPort=5001
ResetOnLogout=N
ResetOnDisconnect=N
[SESSION]
BeginString=FIX.4.1
SenderCompID=TW3
TargetCompID=IN3
Something I am missing?
Thanks,
Andrew
|