BTT application defines the environment in which it runs by setting the externalized configuration files. The following are BTT default and recommended configuration items:
This class is responsible for initializing all settings configurations. The class is packaged in bttcore.jar.
<kColl id="paths"> <field id="entities" value="fromJAR" /> <!--field id="entities" value="./" /--> <!--field id="entities" value="http://127.0.0.1:80/btt/client"/ --> <!--field id="entities" value="c:\btt\definitions"/--> </kColl>
This collection sets the location of the definition files. The location can be an absolute path, a relative path, an HTTP address or fromJAR, which indicates that the files are in JAR files. The value="fromJAR" is the default configuration mode.
This class is responsible for showing the progress bar when reading the XML files. The default value is no.
This class defines the size of the buffer, which is used to read the XML files. The unitage is k bytes.
This class defines the size of the queue buffer, which is used to store the events handled by the automation.
<kColl id="initialization" description="Startup Process Parameters, class and method to start the application. Used by the Startup class during the startup process. Enable cache for formatters and operations."> <field id="enableFormatsCache" value="false" /> <field id="enableOperationsCache" value="true" /> <field id="enableProcessorsCache" value="true" /> <field id="sessionAffinity" value="false" /> <field id="sessionPersistence" value="false" description="Set the session persistence of server" /> <field id="shareDataDescriptors" value="true" /> </kColl>
Startup Process Parameters clause defines the class and method used to start the application. They are used by the Startup class during the startup process, such as enabling the object cache for formats, processors, and operations by setting the value of the appropriate field in the initialization keyed collection, and sharing data descriptors for typed data.
<kColl id="WorkArea"> <field id="usingWorkArea" value="false" /> <field id="location" value="iiop://localhost:2809/" /> <field id="jndiName" value="java:comp/websphere/UserWorkArea" /> </kColl> <kColl id="EJB"> <field id="InitialContextFactory" value="com.ibm.websphere.naming.WsnInitialContextFactory" /> <field id="location" value="iiop://localhost:2809/" /> </kColl>
WorkArea and EJB clauses are deprecated for Single Action EJB use only. As a result, the default configuration does not provide them.
<kColl id="externalizerAccessors" description="Collection for externalizer accessors, default configuration from BTT"> <field id="type" value="com.ibm.btt.base.types.TypeExternalizerAccessor" /> <field id="data" value="com.ibm.btt.base.DataExternalizerAccessor" /> <field id="context" value="com.ibm.btt.base.ContextExternalizerAccessor" /> <field id="format" value="com.ibm.btt.base.FormatExternalizerAccessor" /> <field id="service" value="com.ibm.btt.base.ServiceExternalizerAccessor" /> <field id="operation" value="com.ibm.btt.base.OperExternalizerAccessor" /> <field id="processor" value="com.ibm.btt.automaton.ProcExternalizerAccessor" /> <!-- User can extend customerized externalizerAccessors class--> <!--field id="ExtendProcessor" value="com.xxxbank.client.processor.ProcExternalizerAccessor"/--> </kColl>
This is collection for externalizer accessors. The default configuration is provided.
<kColl id="timeZone"> <field id="enableTimezone" value="true"> </field> <!-- field id="defaultTimezone" value="1"> </field--> </kColl>
enableTimezone parameter is a switch to enable timezone variable. The default value is false to be compatible with V8.0. defaultTimezone is an optional parameter to enable the defualt timezone for current system.