Thread: [Quickfix-developers] how to access default configuration settings?
Brought to you by:
orenmnero
|
From: Sol <sol...@ho...> - 2005-08-10 18:40:36
|
SessionSettings allows access to settings, using the sessionId and = setting key. How are default properties accessed when no sessionId is = available? For example, while initializing the application I would like to read the = default property "ConnectionType" in order to determine whether to = create a SocketAcceptor or a SocketInitiator. -sol |
|
From: Dale W. <wil...@oc...> - 2005-08-10 18:46:21
|
Hi Sol, Sol wrote: > SessionSettings allows access to settings, using the sessionId and > setting key. How are default properties accessed when no sessionId is > available? > > For example, while initializing the application I would like to read > the default property "ConnectionType" in order to determine whether to > create a SocketAcceptor or a SocketInitiator. As part of initializing Quickfix you created a FIX::SessionSettings The get() method on that object gives you a reference to a dictionary of the default settings. Dale > > -sol -- ----------------------------------------------------- Dale Wilson, Senior Software Engineer Object Computing, Inc. (OCI) http://www.ociweb.com/ http://www.theaceorb.com/ ---------------------------------------------------- |
|
From: Sol <sol...@ho...> - 2005-08-10 19:04:20
|
Sorry, I should have mentioned that I am using the Java/JNI version of =
QuickFix. This version of SessionSettings does not have a get() method.=20
Instead, it has the following getters:
public native String getString( SessionID sessionID, String key ) =
throws ConfigError, FieldConvertError;
public native long getLong( SessionID sessionID, String key ) throws =
ConfigError, FieldConvertError;
public native double getDouble( SessionID sessionID, String key ) =
throws ConfigError, FieldConvertError;
public native boolean getBool( SessionID sessionID, String key ) =
throws ConfigError, FieldConvertError;
-sol
----- Original Message -----=20
From: Dale Wilson=20
To: Sol=20
Cc: qui...@li...=20
Sent: Wednesday, August 10, 2005 11:46 AM
Subject: Re: [Quickfix-developers] how to access default configuration =
settings?
Hi Sol,
Sol wrote:=20
SessionSettings allows access to settings, using the sessionId and =
setting key. How are default properties accessed when no sessionId is =
available?
For example, while initializing the application I would like to read =
the default property "ConnectionType" in order to determine whether to =
create a SocketAcceptor or a SocketInitiator.
As part of initializing Quickfix you created a FIX::SessionSettings
The get() method on that object gives you a reference to a dictionary =
of the default settings.
Dale
-sol
--=20
-----------------------------------------------------
Dale Wilson, Senior Software Engineer =20
Object Computing, Inc. (OCI)
http://www.ociweb.com/ http://www.theaceorb.com/
---------------------------------------------------- |
|
From: Dale W. <wil...@oc...> - 2005-08-10 20:51:57
|
Sol wrote: > Sorry, I should have mentioned that I am using the Java/JNI version of > QuickFix. This version of SessionSettings does not have a get() method. In that case, I'll have to defer to someone with more experience with the JNI wrappers. Dale > > Instead, it has the following getters: > public native String getString( SessionID sessionID, String key ) > throws ConfigError, FieldConvertError; > public native long getLong( SessionID sessionID, String key ) > throws ConfigError, FieldConvertError; > public native double getDouble( SessionID sessionID, String key ) > throws ConfigError, FieldConvertError; > public native boolean getBool( SessionID sessionID, String key ) > throws ConfigError, FieldConvertError; > -sol > > ----- Original Message ----- > *From:* Dale Wilson <mailto:wil...@oc...> > *To:* Sol <mailto:sol...@ho...> > *Cc:* qui...@li... > <mailto:qui...@li...> > *Sent:* Wednesday, August 10, 2005 11:46 AM > *Subject:* Re: [Quickfix-developers] how to access default > configuration settings? > > Hi Sol, > > Sol wrote: > >> SessionSettings allows access to settings, using the sessionId >> and setting key. How are default properties accessed when no >> sessionId is available? >> >> For example, while initializing the application I would like to >> read the default property "ConnectionType" in order to determine >> whether to create a SocketAcceptor or a SocketInitiator. > > As part of initializing Quickfix you created a FIX::SessionSettings > The get() method on that object gives you a reference to a > dictionary of the default settings. > > Dale > >> >> -sol > > > >-- >----------------------------------------------------- > Dale Wilson, Senior Software Engineer > Object Computing, Inc. (OCI) > http://www.ociweb.com/ http://www.theaceorb.com/ >---------------------------------------------------- > -- ----------------------------------------------------- Dale Wilson, Senior Software Engineer Object Computing, Inc. (OCI) http://www.ociweb.com/ http://www.theaceorb.com/ ---------------------------------------------------- |
|
From: Oren M. <or...@qu...> - 2005-08-15 17:20:53
|
It's probably just not exposed. We'll be sure to add in support for =
this access. I would imagine that QuickFIX/J already exposes access to =
default settings out of necessity.
--oren
----- Original Message -----=20
From: Sol=20
To: qui...@li...=20
Sent: Wednesday, August 10, 2005 2:04 PM
Subject: Re: [Quickfix-developers] how to access default configuration =
settings?
Sorry, I should have mentioned that I am using the Java/JNI version of =
QuickFix. This version of SessionSettings does not have a get() method.=20
Instead, it has the following getters:
public native String getString( SessionID sessionID, String key ) =
throws ConfigError, FieldConvertError;
public native long getLong( SessionID sessionID, String key ) =
throws ConfigError, FieldConvertError;
public native double getDouble( SessionID sessionID, String key ) =
throws ConfigError, FieldConvertError;
public native boolean getBool( SessionID sessionID, String key ) =
throws ConfigError, FieldConvertError;
-sol
----- Original Message -----=20
From: Dale Wilson=20
To: Sol=20
Cc: qui...@li...=20
Sent: Wednesday, August 10, 2005 11:46 AM
Subject: Re: [Quickfix-developers] how to access default =
configuration settings?
Hi Sol,
Sol wrote:=20
SessionSettings allows access to settings, using the sessionId and =
setting key. How are default properties accessed when no sessionId is =
available?
For example, while initializing the application I would like to =
read the default property "ConnectionType" in order to determine whether =
to create a SocketAcceptor or a SocketInitiator.
As part of initializing Quickfix you created a FIX::SessionSettings
The get() method on that object gives you a reference to a =
dictionary of the default settings.
Dale
-sol
--=20
-----------------------------------------------------
Dale Wilson, Senior Software Engineer =20
Object Computing, Inc. (OCI)
http://www.ociweb.com/ http://www.theaceorb.com/
---------------------------------------------------- |