Re: [Quickfix-developers] how to access default configuration settings?
Brought to you by:
orenmnero
|
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/ ---------------------------------------------------- |